diff options
author | Nick Clifton <nickc@redhat.com> | 2017-06-15 13:08:47 +0100 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2017-06-15 13:08:47 +0100 |
commit | 62b76e4b6e0b4cb5b3e0053d1de4097b32577049 (patch) | |
tree | f57329adfce091b23fc5ebaf7427128ca0c159d8 /bfd/ieee.c | |
parent | 63634bb4a107877dd08b6282e28e11cfd1a1649e (diff) | |
download | gdb-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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; |