More fixes for invalid memory accesses exposed by fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Mon, 22 Dec 2014 22:44:34 +0000 (22:44 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 22 Dec 2014 22:44:34 +0000 (22:44 +0000)
commit058037d3a169c91042c9b8549f7d04fd7550bed6
tree04bbe357f30d3cc370dcb9ed325b2acb0b1be1fa
parent5860e3f883597cf6b8a937547015394edc1e8784
More fixes for invalid memory accesses exposed by fuzzed binaries.

PR binutils/17531
* dwarf.c (decode_location_expression): Check for an out of range
value for a DW_OP_GNU_entry_value expression.
(display_debug_lines_raw): Check for a partial
.debug_line. section being encountered without a prior, full
.debug.line section.
(display_debug_lines_decoded): Likewise.  Also check for
li_line_range being zero.
(display_debug_pubnames_worker): Check for an invalid pn_length
field.
(read_cie): Add range checks.
* elfcomm.c (setup_archive): Check for a negative longnames_size.
binutils/ChangeLog
binutils/dwarf.c
binutils/elfcomm.c