bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/28401] fail to allocate error in objdump at xmalloc.c:147


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/28401] fail to allocate error in objdump at xmalloc.c:147
Date: Wed, 06 Oct 2021 00:54:57 +0000

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 <amodra@sourceware.org>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=55e3926e79937da55da3eaad3b15b4c099071976

commit 55e3926e79937da55da3eaad3b15b4c099071976
Author: Alan Modra <amodra@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.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]