bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/995] strip fails on archive with mixed files


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/995] strip fails on archive with mixed files
Date: Mon, 01 Nov 2021 12:06:01 +0000

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

--- Comment #4 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=c27cdb4c534e0b52ea877b6800f832756ee16a2f

commit c27cdb4c534e0b52ea877b6800f832756ee16a2f
Author: Alan Modra <amodra@gmail.com>
Date:   Mon Nov 1 00:20:01 2021 +1030

    objcopy buffer overflow

    "tocopy" in this code was an int, which when the size to be copied was
    larger than MAXINT could result in tocopy being negative.  A negative
    value of course is less than BUFSIZE, but when converted to
    bfd_size_type is extremely large.

            PR 995
            * objcopy.c (copy_unknown_object): Correct calculation of "tocopy".
            Use better variable types.

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