aboutsummaryrefslogtreecommitdiff
path: root/bfd
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 /bfd
parent5cfe19e51ee06feb191b33a934bcf6cfaaace7b1 (diff)
downloadfsf-binutils-gdb-237877b8183a23ecc889b5c796c210aac9cfb742.zip
fsf-binutils-gdb-237877b8183a23ecc889b5c796c210aac9cfb742.tar.gz
fsf-binutils-gdb-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 'bfd')
0 files changed, 0 insertions, 0 deletions