bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/28172] bfin_pcrel24_reloc heap-buffer-overflow


From: cvs-commit at gcc dot gnu.org
Subject: [Bug binutils/28172] bfin_pcrel24_reloc heap-buffer-overflow
Date: Fri, 06 Aug 2021 13:37:27 +0000

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

--- 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=352bd3aa1c68137d4a5115183f42c40b75ee05b3

commit 352bd3aa1c68137d4a5115183f42c40b75ee05b3
Author: Alan Modra <amodra@gmail.com>
Date:   Fri Aug 6 17:26:14 2021 +0930

    PR28172, bfin_pcrel24_reloc heap-buffer-overflow

    bfin pcrel24 relocs are weird, they apply to the reloc address minus
    two.  That means reloc addresses of 0 and 1 are invalid.  Check that,
    and fix other reloc range checking.

            PR 28172
            * elf32-bfin.c (bfin_pcrel24_reloc): Correct reloc range check.
            (bfin_imm16_reloc, bfin_byte4_reloc, bfin_bfd_reloc): Likewise.
            (bfin_final_link_relocate): 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]