Re: [PATCH v2 1/1] libdw: check that DWARF strings are null-terminated

2023-02-16 Thread Mark Wielaard
Hi Aleksei, On Tue, Feb 14, 2023 at 08:30:02PM +, Aleksei Vetrov via Elfutils-devel wrote: > It is expected from libdw to return strings that are null-terminated to > avoid overflowing ELF data. > > * Add calculation of a safe prefix inside string sections, where any > string will be null-

[PATCH v2 1/1] libdw: check that DWARF strings are null-terminated

2023-02-14 Thread Aleksei Vetrov via Elfutils-devel
It is expected from libdw to return strings that are null-terminated to avoid overflowing ELF data. * Add calculation of a safe prefix inside string sections, where any string will be null-terminated. * Check if offset overflows the safe prefix in dwarf_formstring. Signed-off-by: Aleksei Vetro