]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commit
segv in bfd_elf_get_str_section
authorAlan Modra <amodra@gmail.com>
Mon, 30 Sep 2024 22:23:55 +0000 (07:53 +0930)
committerAlan Modra <amodra@gmail.com>
Mon, 30 Sep 2024 22:34:14 +0000 (08:04 +0930)
commit656f8fbaae34cb37bda5110cbc8c79c6a2aaa847
tree72019385bb665cedf42057ceffc78f030de0506c
parent887ae0cf2be5cb10d68b14f16df8faf666f4e43b
segv in bfd_elf_get_str_section

Attempting to write a termination NUL to PROT_READ mmap'd memory was
a silly idea.

PR 32109
* elf.c (bfd_elf_get_str_section): Don't write terminating NUL
if missing.
* libbfd.c (_bfd_munmap_readonly_temporary): Correct comment.
bfd/elf.c
bfd/libbfd.c