bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28402] fail to allocate error in objdump at objalloc.c:143


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/28402] fail to allocate error in objdump at objalloc.c:143
Date: Wed, 06 Oct 2021 07:32:19 +0000

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

--- 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=1808483c2f3f323d8e0398282251a85cd956321b

commit 1808483c2f3f323d8e0398282251a85cd956321b
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Oct 6 13:38:42 2021 +1030

    PR28402, fail to allocate line number array

    This fixes a situation where the COFF code allocated memory for
    internal representaion arrays before reading the external file data.
    That meant the allocation didn't have any sanity check against file
    size.

            PR 28402
            * coffcode.h (buy_and_read): Malloc rather than alloc memory.
            (coff_slurp_line_table): Read native line number info before
            allocating memory for internal line number array.  Adjust error
            paths to suit.  Remove now unnecessary line number count check.
            (coff_slurp_reloc_table): Adjust to suit buy_and_read change.

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