More fixes for invalid memory accesses triggered by corrupt binaries.
authorNick Clifton <nickc@redhat.com>
Fri, 14 Nov 2014 12:30:00 +0000 (12:30 +0000)
committerNick Clifton <nickc@redhat.com>
Fri, 14 Nov 2014 12:30:00 +0000 (12:30 +0000)
commit041830e03cca866f12be18198898139e558ad31e
tree343e78caf87d119aa29bb7ea3d471260d1296370
parent646da0594c91719ef591d8736865a1d58fbbfc34
More fixes for invalid memory accesses triggered by corrupt binaries.

PR binutils/17512
* dwarf.c (get_encoded_value): Add an 'end' parameter.  Change the
'data' parameter to a double pointer and return the updated value.
(decode_location_expression): Update call to get_encoded_value.
(frame_need_space): Handle the case where one or both of the
mallocs fails.
(read_cie): Initialise the cie pointer, even if the read fails.
(display_debug_frames): Warn if the calculated block_end is before
the start of the block.  Break the loop if the CIE could not be
read.  Update call to get_encoded_value.  Warn if the read CFA
expressions are too big.

* ieee.c (ieee_archive_p) Skip processing if no bytes are read at
all.
(ieee_object_p): Likewise.
bfd/ChangeLog
bfd/ieee.c
binutils/ChangeLog
binutils/dwarf.c
This page took 0.031149 seconds and 4 git commands to generate.