PR binutils/11419
authorNick Clifton <nickc@redhat.com>
Tue, 13 Apr 2010 12:20:55 +0000 (12:20 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 13 Apr 2010 12:20:55 +0000 (12:20 +0000)
        * dwarf.c (process_debug_info): Initialise the signature array.

binutils/ChangeLog
binutils/dwarf.c

index 2db6368cd8cfba4d35d6faa7e4824d58af7cb85d..72c4194714d2600ae5c90405bd5be3ec42c2bfdc 100644 (file)
@@ -1,3 +1,8 @@
+2010-04-13  Nick Clifton  <nickc@redhat.com>
+
+       PR binutils/11419
+       * dwarf.c (process_debug_info): Initialise the signature array.
+
 2010-04-09  Nick Clifton  <nickc@redhat.com>
 
        * dwarf.c (process_debug_info): Remove unused variable
index cf5c8e1ef0613e5731cf2c823187388ec8147453..0da2c225913f8a9cb03002200440ff9ea070b269 100644 (file)
@@ -1961,7 +1961,7 @@ process_debug_info (struct dwarf_section *section,
       unsigned long cu_offset;
       int offset_size;
       int initial_length_size;
-      unsigned char signature[8];
+      unsigned char signature[8] = { 0 };
       unsigned long type_offset = 0;
 
       hdrptr = start;