aboutsummaryrefslogtreecommitdiff
path: root/gdb/m32r-tdep.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2021-07-30 13:07:12 +0930
committerAlan Modra <amodra@gmail.com>2021-07-30 15:33:07 +0930
commit237877b8183a23ecc889b5c796c210aac9cfb742 (patch)
treeaefe79fcfa2b5a985b22b42ee423716a66a172fb /gdb/m32r-tdep.c
parent5cfe19e51ee06feb191b33a934bcf6cfaaace7b1 (diff)
downloadbinutils-237877b8183a23ecc889b5c796c210aac9cfb742.zip
binutils-237877b8183a23ecc889b5c796c210aac9cfb742.tar.gz
binutils-237877b8183a23ecc889b5c796c210aac9cfb742.tar.bz2
readelf: catch archive_file_size of -1
Fuzzers might put -1 in arhdr.ar_size. If the size is rounded up to and even number of bytes we get zero. * readelf.c (process_archive): Don't round up archive_file_size. Do round up next_arhdr_offset calculation.
Diffstat (limited to 'gdb/m32r-tdep.c')
0 files changed, 0 insertions, 0 deletions