Fixes for invalid memory accesses triggered by running readelf on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Wed, 11 Feb 2015 13:05:04 +0000 (13:05 +0000)
committerNick Clifton <nickc@redhat.com>
Wed, 11 Feb 2015 13:05:04 +0000 (13:05 +0000)
commit362beea4b400bcd5aca3bb1215a77e9e749b07fe
treee5f2090255d9e4ada3bdefc45ca76012e47bcbb7
parent439b7f41b5fee5ec5902aecc8f3fd105be6270b3
Fixes for invalid memory accesses triggered by running readelf on fuzzed binaries.

PR binutils/17531
* dwarf.c (display_debug_pubnames_worker): Work around compiler
bug checking address ranges.
(display_debug_frames): Likewise.
(display_gdb_index): Likewise.
(process_cu_tu_index): Add range check on the ncols value.
binutils/ChangeLog
binutils/dwarf.c