More fixes for memory access errors when running readelf on fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Mon, 12 Jan 2015 16:08:41 +0000 (16:08 +0000)
committerNick Clifton <nickc@redhat.com>
Mon, 12 Jan 2015 16:08:41 +0000 (16:08 +0000)
commit72c61a0d1ef445f99305859b66450da60ec6e0cb
treedfe02ba917560930a9ee5567b15b63e324913d38
parent696025802ec3273fde5cbf82c215a3d795435c1a
More fixes for memory access errors when running readelf on fuzzed binaries.

PR binutils/17531
* dwarf.c (process_debug_info): Check for abbrev_base being larger
than the section size.
(process_cu_tu_index): Use xcalloc2 to allocate the CU and TU
arrays.
(xcalloc2): New function.  Like xcalloc, but checks for overflow.
* dwarf.h (xcalloc2): Prototype.
binutils/ChangeLog
binutils/dwarf.c
binutils/dwarf.h
This page took 0.024054 seconds and 4 git commands to generate.