More fixes for memory access violations triggered by running readelf on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Wed, 4 Feb 2015 10:40:05 +0000 (10:40 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 4 Feb 2015 10:48:46 +0000 (10:48 +0000)
commitf3853b34448594744f284fa96f26e41fd533a50d
treef8415afad58dbd56297468e5a65c437161fbdf53
parent80bd5fab6252d1cdff1ca95096ebe9b3053c8ec3
More fixes for memory access violations triggered by running readelf on fuzzed binaries.

PR binutils/17531
* dwarf.c (read_and_display_attr_value): Test for a block length
being so long that it wraps around to before the start of the block.
(process_debug_info): Test for section_begin wrapping around to
before the start of the section.
(display_gdb_index): Test for num_cus being so large that the end
address wraps around to before the start of the section.
(process_cu_tu_index): Test for j being so large that the section
index pool wraps around to before the start of the section.
binutils/ChangeLog
binutils/dwarf.c