PR22361 readelf buffer overflow on fuzzed archive header
authorAlan Modra <amodra@gmail.com>
Sat, 28 Oct 2017 11:01:16 +0000 (21:31 +1030)
committerAlan Modra <amodra@gmail.com>
Sat, 28 Oct 2017 11:42:46 +0000 (22:12 +1030)
commitd91f0b20e561e326ee91a09a76206257bde8438b
tree7e8751e34818f12a3c17b333d6aadf15c4757055
parentc0e331c794d6bd75d9be9bea6145513074c33f39
PR22361 readelf buffer overflow on fuzzed archive header

PR 22361
* readelf.c (process_archive_index_and_symbols): Ensure ar_size
field is zero terminated for strtoul.
(setup_archive, get_archive_member_name): Likewise.
binutils/ChangeLog
binutils/elfcomm.c