Created attachment 10493 [details] stacktrace.txt On 2.29.51.20170929: #objdump -g -D -F -S --file-start-context -l -R -s -W -G -T --special-syms -x $FILE
Created attachment 10494 [details] testcase
The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=4f1881b94473f1034f950feb863b464435a8fb5f commit 4f1881b94473f1034f950feb863b464435a8fb5f Author: Alan Modra <amodra@gmail.com> Date: Sun Oct 1 12:07:07 2017 +1030 PR22230, buffer overflow in display_debug_macro PR 22230 * objdump.c (load_specific_debug_section): Allocate an extra byte for a terminating NUL.
Fixed
The master branch has been updated by Alan Modra <amodra@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=bfec0f11eadd7ed3597bc9b550a5595421a4cb31 commit bfec0f11eadd7ed3597bc9b550a5595421a4cb31 Author: Alan Modra <amodra@gmail.com> Date: Sun Oct 1 21:40:23 2017 +1030 PR22232, NULL pointer dereference in load_specific_debug_section PR 22232 PR 22230 * objdump.c (load_specific_debug_section): Introduce a temp to stop bfd_get_full_section_contents NULLing out section->start.