aboutsummaryrefslogtreecommitdiff
path: root/binutils
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2010-04-13 12:20:55 +0000
committerNick Clifton <nickc@redhat.com>2010-04-13 12:20:55 +0000
commit1e70a64d142b7c88b8024545baeed19dd808d576 (patch)
tree039483a3c7294c5cb8d8c1eba54088c81f65edba /binutils
parentae3bccd49af51ab056588ec70dff8364b6266de5 (diff)
downloadfsf-binutils-gdb-1e70a64d142b7c88b8024545baeed19dd808d576.zip
fsf-binutils-gdb-1e70a64d142b7c88b8024545baeed19dd808d576.tar.gz
fsf-binutils-gdb-1e70a64d142b7c88b8024545baeed19dd808d576.tar.bz2
PR binutils/11419
* dwarf.c (process_debug_info): Initialise the signature array.
Diffstat (limited to 'binutils')
-rw-r--r--binutils/ChangeLog5
-rw-r--r--binutils/dwarf.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index 2db6368..72c4194 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -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
diff --git a/binutils/dwarf.c b/binutils/dwarf.c
index cf5c8e1..0da2c22 100644
--- a/binutils/dwarf.c
+++ b/binutils/dwarf.c
@@ -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;