Fix memory access violations for objdump triggered by fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Tue, 6 Jan 2015 17:54:02 +0000 (17:54 +0000)
committerNick Clifton <nickc@redhat.com>
Tue, 6 Jan 2015 17:54:02 +0000 (17:54 +0000)
commitec93045b400ec68b0c5716d75f27a87533b57058
tree255a7168f3247cfd8107da8ab9f8a19c64497866
parent60ebc25751744f54ae5c00d1c9198ab64fcc5b33
Fix memory access violations for objdump triggered by fuzzed binaries.

PR binutils/17512
* reloc.c (bfd_get_reloc_size): Handle a reloc size of -1.
(bfd_perform_relocation): Include the size of the reloc in the
test for an out of range relocation.
(bfd_generic_get_relocated_section_contents): Remove reloc range
test.
bfd/ChangeLog
bfd/reloc.c