Created attachment 10285 [details]
Testcases and ASAN output
I have found 5 more testcases revealing crashes or undefined behavior in the
current objdump. These can be detected with a recent ASAN running under
See the attached file for the testcases and ASAN output.
Thanks so much for addressing previous reports with high quality patches.
The master branch has been updated by Nick Clifton <email@example.com>:
Author: Nick Clifton <firstname.lastname@example.org>
Date: Thu Jul 27 12:04:50 2017 +0100
Fix address violation issues encountered when parsing corrupt binaries.
* mach-o.c (bfd_mach_o_read_symtab_strtab): Fail if the symtab
size is -1.
* nlmcode.h (nlm_swap_auxiliary_headers_in): Replace assertion
with error return.
* section.c (bfd_make_section_with_flags): Fail if the name or bfd
* vms-alpha.c (bfd_make_section_with_flags): Correct computation
of end pointer.
(evax_bfd_print_emh): Check for invalid string lengths.
Thanks for the bug report and test files.
I have checked in a patch which should take care of all of the problems.
Will this fix be backported to 2.29?
It would not be a huge issue if it were not, I'm just trying to understand your workflow.
The patch is now checked in to the 2.29 branch as well.
Super. Thanks Nick.