bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/26337] Malloc size error in objdump


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/26337] Malloc size error in objdump
Date: Wed, 05 Aug 2020 05:51:24 +0000

https://sourceware.org/bugzilla/show_bug.cgi?id=26337

--- 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=0b97e818464a42305c8243a980a5c13967554fd9

commit 0b97e818464a42305c8243a980a5c13967554fd9
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Aug 5 10:03:00 2020 +0930

    PR26337, Malloc size error in objdump

    A malloc failure triggered by a fuzzed object file isn't a real
    problem unless objdump doesn't exit cleanly after the failure, which
    it does.  However we have bfd_malloc_and_get_section to sanity check
    size of uncompressed sections before allocating memory.  Use it.

            PR 26337
            * objdump.c (load_specific_debug_section): Don't malloc space for
            section contents, use bfd_malloc_and_get_section.

-- 
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]