aboutsummaryrefslogtreecommitdiff
path: root/bfd/ieee.c
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2017-06-15 13:08:47 +0100
committerNick Clifton <nickc@redhat.com>2017-06-15 13:08:47 +0100
commit62b76e4b6e0b4cb5b3e0053d1de4097b32577049 (patch)
treef57329adfce091b23fc5ebaf7427128ca0c159d8 /bfd/ieee.c
parent63634bb4a107877dd08b6282e28e11cfd1a1649e (diff)
downloadgdb-62b76e4b6e0b4cb5b3e0053d1de4097b32577049.zip
gdb-62b76e4b6e0b4cb5b3e0053d1de4097b32577049.tar.gz
gdb-62b76e4b6e0b4cb5b3e0053d1de4097b32577049.tar.bz2
Fix address violation parsing a corrupt ieee binary.
PR binutils/21581 (ieee_archive_p): Use a static buffer to avoid compiler bugs.
Diffstat (limited to 'bfd/ieee.c')
-rw-r--r--bfd/ieee.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bfd/ieee.c b/bfd/ieee.c
index 0884d87..f7ea4bd 100644
--- a/bfd/ieee.c
+++ b/bfd/ieee.c
@@ -1355,7 +1355,7 @@ ieee_archive_p (bfd *abfd)
{
char *library;
unsigned int i;
- unsigned char buffer[512];
+ static unsigned char buffer[512];
file_ptr buffer_offset = 0;
ieee_ar_data_type *save = abfd->tdata.ieee_ar_data;
ieee_ar_data_type *ieee;