https://sourceware.org/bugzilla/show_bug.cgi?id=28401
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> --- The master branch has been updated by Alan Modra <amo...@sourceware.org>: https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55e3926e79937da55da3eaad3b15b4c099071976 commit 55e3926e79937da55da3eaad3b15b4c099071976 Author: Alan Modra <amo...@gmail.com> Date: Wed Oct 6 09:54:56 2021 +1030 PR28401, invalid section name lookup The PR28401 testcase has a section named "", ie. an empty string. This results in some silly behaviour in load_debug_section, and dump_dwarf_section. Fix that. Note that this patch doesn't correct the main complaint in PR28401, "failed to allocate", since malloc failures on sections having huge bogus sizes are to be expected. We can't safely catch all such cases by comparing with file size, for example, where sections contain compressed data. PR 28401 * objdump.c (load_debug_section): Don't attempt to retrieve empty name sections. (dump_dwarf_section): Likewise. -- You are receiving this mail because: You are on the CC list for the bug.