]> sourceware.org Git - glibc.git/commitdiff
Don't crash on unresolved weak symbol reference when auditing.
authorUlrich Drepper <drepper@redhat.com>
Sat, 22 May 2010 06:51:18 +0000 (23:51 -0700)
committerUlrich Drepper <drepper@redhat.com>
Sat, 22 May 2010 06:51:18 +0000 (23:51 -0700)
ChangeLog
elf/dl-runtime.c

index 951f367bb4c416ac3ca2bb7276f51e34ac91aee9..5571fcf2e79836583dfd28cf01094cd36d7624b4 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2010-05-21  Ulrich Drepper  <drepper@redhat.com>
+
+       * elf/dl-runtime.c (_dl_profile_fixup): Don't crash on unresolved weak
+       symbol reference.
+
 2010-05-19  Andreas Schwab  <schwab@redhat.com>
 
        * elf/dl-runtime.c (_dl_fixup): Don't crash on unresolved weak
index 181af7dfac64122b80839c6be48c2a2f8d798185..6847edafc6940e849e1bc340163e150e901fc6af 100644 (file)
@@ -232,8 +232,9 @@ _dl_profile_fixup (
                                       ? LOOKUP_VALUE_ADDRESS (result)
                                         + defsym->st_value : 0);
 
-         if (__builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
-                               == STT_GNU_IFUNC, 0))
+         if (defsym != NULL
+             && __builtin_expect (ELFW(ST_TYPE) (defsym->st_info)
+                                  == STT_GNU_IFUNC, 0))
            value = ((DL_FIXUP_VALUE_TYPE (*) (void))
                     DL_FIXUP_VALUE_ADDR (value)) ();
        }
This page took 0.045842 seconds and 5 git commands to generate.