diff options
author | Alan Modra <amodra@gmail.com> | 2020-03-25 22:25:37 +1030 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2020-03-25 22:31:07 +1030 |
commit | 4c83662712f80abe9a7d8ef645123347a9de7adb (patch) | |
tree | 69a20581d3c5783b3e51f0a959f0124a9b387ee2 /gdb/dwarf2/macro.c | |
parent | aac88046e6cccf13fc408fc4e515aaf2548fe898 (diff) | |
download | binutils-4c83662712f80abe9a7d8ef645123347a9de7adb.zip binutils-4c83662712f80abe9a7d8ef645123347a9de7adb.tar.gz binutils-4c83662712f80abe9a7d8ef645123347a9de7adb.tar.bz2 |
readelf looping in process_archive
With a crafted "negative" ar_hdr.ar_size it is possible to make
readelf loop. This patch catches the overflow in a file offset
calculation.
* readelf.c (process_archive): Prevent endless loop.
Diffstat (limited to 'gdb/dwarf2/macro.c')
0 files changed, 0 insertions, 0 deletions