Re: [PATCH] unstrip: Fix deref-of-null in copy_elided_sections()

2024-07-02 Thread Mark Wielaard
On Mon, Jul 01, 2024 at 11:53:13PM +0300, Maks Mishin wrote: > Pointer `symstrdata` is dereferenced at unstrip.c:1977 without checking for > NULL. If there has to be a NULL check then it needs to be when symstrdata is assigned a value from elf_getdata. Cheers, Mark

[PATCH] unstrip: Fix deref-of-null in copy_elided_sections()

2024-07-01 Thread Maks Mishin
Pointer `symstrdata` is dereferenced at unstrip.c:1977 without checking for NULL. Signed-off-by: Maks Mishin --- src/unstrip.c | 5 - 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/unstrip.c b/src/unstrip.c index d70053de..87bd12de 100644 --- a/src/unstrip.c +++ b/src/unst