Re: [PATCH] libdw: check offset dwarf_formstring in all cases

2023-11-17 Thread Mark Wielaard
Hi Aleksei, On Thu, 2023-11-16 at 21:29 +, vvv...@google.com wrote: > This check was initially added to test if offset overflows the safe > prefix where any string will be null-terminated. However the check > was placed in a wrong place and didn't cover all `attrp->form` cases. > > * libd

[PATCH] libdw: check offset dwarf_formstring in all cases

2023-11-16 Thread vvvvvv
From: Aleksei Vetrov This check was initially added to test if offset overflows the safe prefix where any string will be null-terminated. However the check was placed in a wrong place and didn't cover all `attrp->form` cases. * libdw/dwarf_formstring.c (dwarf_formstring): Move offset check