]> granicus.if.org Git - gc/commitdiff
2010-06-14 Geoff Norton <gnorton@novell.com>
authorGeoff Norton <grompf@sublimeintervention.com>
Mon, 14 Jun 2010 17:39:53 +0000 (17:39 +0000)
committerguest <ivmai@mail.ru>
Fri, 29 Jul 2011 11:31:22 +0000 (15:31 +0400)
* dyn_load.c: Fix one other place where l_addr could be null on
bionic.

svn path=/trunk/mono/; revision=158891

ChangeLog
dyn_load.c

index de4da8dae6c9ebba35fbd37b9958df528799d32e..da66ce5616999c93f25ee4ca33640f81c68a492f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-14  Geoff Norton  <gnorton@novell.com>
+
+       * dyn_load.c: Fix one other place where l_addr could be null on 
+       bionic.
+
 2010-05-31  Geoff Norton  <gnorton@novell.com>
 
        * dyn_load.c: Its possible for linkmap->l_addr to be null for the
index 63f646244a5e093f978619da225e67b876467c6b..a42efd4e25d7264d6d4a93f26051cf614b8ca0ca 100644 (file)
@@ -250,7 +250,10 @@ void GC_register_dynamic_libraries()
         char * start;
         register int i;
         
-       e = (ElfW(Ehdr) *) lm->l_addr;
+        e = (ElfW(Ehdr) *) lm->l_addr;
+        if (e == NULL)
+          continue;
+
         p = ((ElfW(Phdr) *)(((char *)(e)) + e->e_phoff));
         offset = ((unsigned long)(lm->l_addr));
         for( i = 0; i < (int)(e->e_phnum); ((i++),(p++)) ) {