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

--- Comment #7 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <[email protected]>:

https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=047435dd988a3975d40c6626a8f739a0b2e154bc

commit 047435dd988a3975d40c6626a8f739a0b2e154bc
Author: Alan Modra <[email protected]>
Date:   Thu Sep 25 08:22:24 2025 +0930

    PR 33452 SEGV in bfd_elf_gc_record_vtentry

    Limit addends on vtentry relocs, otherwise ld might attempt to
    allocate a stupidly large array.  This also fixes the expression
    overflow leading to pr33452.  A vtable of 33M entries on a 64-bit
    host is surely large enough, especially considering that VTINHERIT
    and VTENTRY relocations are to support -fvtable-gc that disappeared
    from gcc over 20 years ago.

            PR ld/33452
            * elflink.c (bfd_elf_gc_record_vtentry): Sanity check addend.

-- 
You are receiving this mail because:
You are on the CC list for the bug.

Reply via email to