This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[COMMIT][ARM] Obvious fix to missing initializer bug in stub_hash_newfunc.


Hi

   I just committed this to trunk for a SEGV fault caused by
uninitialized output_name field in a new stub hash entry.

-Doug

2009-07-27  Doug Kwan  <dougkwan@google.com>

        * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.

Index: bfd/elf32-arm.c
===================================================================
RCS file: /cvs/src/src/bfd/elf32-arm.c,v
retrieving revision 1.205
diff -u -p -r1.205 elf32-arm.c
--- bfd/elf32-arm.c	10 Jul 2009 16:56:15 -0000	1.205
+++ bfd/elf32-arm.c	27 Jul 2009 22:11:41 -0000
@@ -2724,6 +2724,7 @@ stub_hash_newfunc (struct bfd_hash_entry
       eh->stub_template_size = 0;
       eh->h = NULL;
       eh->id_sec = NULL;
+      eh->output_name = NULL;
     }

   return entry;


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]