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

--- Comment #5 from Sourceware Commits <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Alan Modra <amo...@sourceware.org>:

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

commit dc5b07c23bf6774ae9f84c8616e331cb7284363e
Author: Alan Modra <amo...@gmail.com>
Date:   Sat May 31 08:13:20 2025 +0930

    PR 33020 segv in _bfd_elf_strtab_offset

    The PR fuzzer testcase creates a SHT_NOBITS .debug_info section, then
    triggers a bug in --compress-debug-sections=zlib whereby sh_name is
    set to -1 in elf_fake_sections as a flag to indicate the name is not
    set yet (may change to zdebug_*), but the section never hits the debug
    compression code in assign_file_positions_for_non_load_sections that
    is responsible for setting sh_name.

            PR 33020
            * elf.c (_bfd_elf_init_reloc_shdr): Rename delay_st_name_p
            param to delay_sh_name_p.
            (elf_fake_sections): Rename delay_st_name_p to delay_sh_name_p.
            Don't set delay_sh_name_p for no contents debug sections.

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

Reply via email to