Bug 1082524 - Initialize link_map. r=nfroyd
authorMike Hommey <mh+mozilla@glandium.org>
Wed, 15 Oct 2014 14:46:09 +0900
changeset 210495 efe4e96122a315acf68287bd597c00966631cd84
parent 210494 869f6077817ac69640053331fbeadb0342330781
child 210496 8e90467616279450f2bc687f4165f7d859779c36
push id1
push userroot
push dateMon, 20 Oct 2014 17:29:22 +0000
reviewersnfroyd
bugs1082524
milestone36.0a1
Bug 1082524 - Initialize link_map. r=nfroyd When a library fails to load with CustomElf before it's registered, the unregistration that does happen in CustomElf's destructor uses link_map, so it needs to be initialized.
mozglue/linker/CustomElf.h
--- a/mozglue/linker/CustomElf.h
+++ b/mozglue/linker/CustomElf.h
@@ -62,16 +62,17 @@ private:
    */
   void *GetSymbolPtrInDeps(const char *symbol) const;
 
   /**
    * Private constructor
    */
   CustomElf(Mappable *mappable, const char *path)
   : BaseElf(path)
+  , link_map()
   , mappable(mappable)
   , init(0)
   , fini(0)
   , initialized(false)
   , has_text_relocs(false)
   { }
 
   /**