https://sourceware.org/bugzilla/show_bug.cgi?id=33099
--- Comment #5 from Zero Trac3r ---
(In reply to Mark Wielaard from comment #4)
> (In reply to Mark Wielaard from comment #3)
> > Or maybe we need to add the check where the symstrdata is allocated?
>
> I wrote a patch to do that instead:
>
Hi Mark,
On Sun, Jun 22, 2025 at 10:19 AM Mark Wielaard wrote:
>
> dwfl_module_getsym returns the name of a symbol as found in the
> corresponding (symbol) string section. Make sure all names are
> correctly zero terminated by making sure the last valid index in a
> section/segment Elf_Data conta
Signed-off-by: Aaron Merey
---
v2: Clarify that the offset refers to the archive member header.
> > +.SH RETURN VALUE
> > +Return the file offset, in bytes, of the archive member referred to by
> > +.IR elf .
> > +If
> > +.I elf
> > +is NULL or is not a member of an archive,
> > +return
> > +.BR
Signed-off-by: Aaron Merey
---
v2 changes: clarify when changes to the parent archive descriptor
invalidate the return value. Change thread safety attribute to
MT-Unsafe race.
doc/Makefile.am| 1 +
doc/elf_getarhdr.3 | 80 ++
2 files changed, 81