bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/26348] Malloc error in write_zeros


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/26348] Malloc error in write_zeros
Date: Wed, 12 Aug 2020 22:43:37 +0000

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

--- 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=75e100a30d5dfdd3ac2b0391c17173645fc77633

commit 75e100a30d5dfdd3ac2b0391c17173645fc77633
Author: Alan Modra <amodra@gmail.com>
Date:   Wed Aug 12 20:18:43 2020 +0930

    PR26348, Malloc error in write_zeros

    This adds a few more sanity checks on ELF objects, and a BFD flag to
    disable objcopy and strip when fuzzed input files belong in the "too
    hard" basket.

    bfd/
            PR 26348
            * bfd.c (struct bfd): Add read_only.
            * elfcode.h (elf_swap_shdr_in): Test both sh_offset and sh_size.
            Set read_only on warning.
            (elf_object_p): Sanity check program header alignment.  Set
            read_only on warning.
            * bfd-in2.h: Regenerate.
    binutils/
            PR 26348
            * objcopy.c (copy_object): Report file name with endian error.
            Error and return on abfd->read_only.

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