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

--- Comment #2 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=76be2846f43c0e55d547c7b27c490fec16e0c33a

commit 76be2846f43c0e55d547c7b27c490fec16e0c33a
Author: Alan Modra <[email protected]>
Date:   Thu Jul 2 11:04:13 2026 +0930

    PR 34327 More out of bounds accesses in reloc special functions

    I don't claim to have caught all places where reloc special functions
    don't sanity check input, but this should be most of them.  Hopefully
    this does not expose odd reloc howto entries like the mmix one in the
    previous patch.

            * coff-arm.c (aoutarm_fix_pcrel_26): Sanity check reloc offset.
            Remove some unnecessary casts.
            (coff_thumb_pcrel_common): Likewise.
            * coff-mips.c (mips_generic_reloc): Remove unnecessary casts.
            (mips_refhi_reloc): Likewise.
            (mips_gprel_reloc): Likewise.  Use bfd_reloc_offset_in_range.
            * cpu-ns32k.c (do_ns32k_reloc): Likewise.
            * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.  Don't
            abort, return notsupported instead.
            * elf32-pj.c (pj_elf_reloc): Sanity check reloc offset.
            * elf32-pru.c (pru_elf32_do_s10_pcrel_relocate): Update reloc
            offset sanity check.
            (pru_elf32_do_ldi32_relocate): Likewise.
            * elf32-s390.c (s390_elf_ldisp_reloc): Use
bfd_reloc_offset_in_range.
            Remove unnecessary casts.
            * elf32-score7.c (score_elf_got_lo16_reloc): Remove redundant old
            reloc offset sanity check.
            * elf32-sh.c (sh_elf_reloc): Use bfd_reloc_offset_in_range.
            * elf32-v850.c (v850_elf_reloc): Likewise.

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

Reply via email to