More fixes for invalid memory accesses triggered by fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Mon, 8 Dec 2014 17:51:46 +0000 (17:51 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 8 Dec 2014 17:51:46 +0000 (17:51 +0000)
commit53774b7e76dc5b3e8cc00d6f7a9d27e6c65830a9
treed83a4ad028139a5ea164eec9bb36fe96115ca3b1
parent2ebecbb12e1281fca50fb0361475a01243432825
More fixes for invalid memory accesses triggered by fuzzed binaries.

PR binutils/17531
* dwarf.c (display_debug_frames): Check for a negative
augmentation data length.
(display_gdb_index): Check for invalid offsets.
* elfcomm.c (process_archive_index_and_symbols): Check for an
index number that overflows when multiplied by the ar index size.
* readelf.c (dump_ia64_unwind): Add range checks.
(slurp_ia64_unwind_table): Change to a boolean function.  Add
range checks.
(process_version_sections): Add range checks.
(get_symbol_version_string): Add check for missing section
headers.
binutils/ChangeLog
binutils/dwarf.c
binutils/elfcomm.c
binutils/readelf.c