https://sourceware.org/bugzilla/show_bug.cgi?id=34412
Mark Wielaard <mark at klomp dot org> changed:
What |Removed |Added
----------------------------------------------------------------------------
Ever confirmed|0 |1
Status|UNCONFIRMED |ASSIGNED
Last reconfirmed| |2026-07-28
Assignee|unassigned at sourceware dot org |mark at klomp dot org
--- Comment #2 from Mark Wielaard <mark at klomp dot org> ---
Found a "simpler" way to show the same issue.
When opening an existing Elf file in ELF_C_RDWR mode and adding a new section
(with elf_newscn) you see the same issue: valgrind will complain:
==1389600== Syscall param pwrite64(buf) points to unaddressable byte(s)
==1389600== at 0x51EB90B: pwrite (pwrite64.c:25)
==1389600== by 0x488423F: __elf64_updatefile (system.h:192)
==1389600== by 0x487B0F3: elf_update (elf_update.c:132)
==1389600== by 0x401630: main (elfupdate.c:1818)
==1389600== Address 0x58772c0 is 0 bytes after a block of size 2,752 alloc'd
==1389600== at 0x4840AE6: malloc (vg_replace_malloc.c:447)
==1389600== by 0x4874CA8: load_shdr_wrlock (elf32_getshdr.c:69)
==1389600== by 0x4876937: gelf_getshdr (gelf_getshdr.c:86)
==1389600== by 0x4920436: scn_dwarf_type (dwarf_begin_elf.c:110)
==1389600== by 0x4921CAB: dwarf_begin_elf_type (dwarf_begin_elf.c:516)
==1389600== by 0x400CF7: main (elfupdate.c:788)
--
You are receiving this mail because:
You are on the CC list for the bug.