Fix address violations when atempting to parse fuzzed binaries.
authorNick Clifton <nickc@redhat.com>
Mon, 26 Jun 2017 14:25:08 +0000 (15:25 +0100)
committerNick Clifton <nickc@redhat.com>
Mon, 26 Jun 2017 14:25:08 +0000 (15:25 +0100)
commitcfd14a500e0485374596234de4db10e88ebc7618
tree5627cf743e8fc9646606e13bd6227fe959636bd5
parent0602cdad745472ed2561d8096a4bb021c8d0301d
Fix address violations when atempting to parse fuzzed binaries.

PR binutils/21665
bfd * opncls.c (get_build_id): Check that the section is beig enough
to contain the whole note.
* compress.c (bfd_get_full_section_contents): Check for and reject
a section whoes size is greater than the size of the entire file.
* elf32-v850.c (v850_elf_copy_notes): Allow for the ouput to not
contain a notes section.

binutils* objdump.c (disassemble_section): Skip any section that is bigger
than the entire file.
bfd/ChangeLog
bfd/compress.c
bfd/elf32-v850.c
bfd/opncls.c
binutils/ChangeLog
binutils/objdump.c