Re: [PATCH] src: fix DEREF_OF_NULL.RET.STAT in unstrip.c

2025-02-27 Thread Mark Wielaard
Hi Anton, On Thu, Feb 13, 2025 at 08:19:44PM +0300, Anton Moryakov wrote: > Static analyzer reported: > Return value of a function 'elf_getdata' is dereferenced at unstrip.c:1977 > without checking for NULL, but it is usually checked for this function > (97/101). > > Corrections explained: > - A

[PATCH] src: fix DEREF_OF_NULL.RET.STAT in unstrip.c

2025-02-13 Thread Anton Moryakov
Static analyzer reported: Return value of a function 'elf_getdata' is dereferenced at unstrip.c:1977 without checking for NULL, but it is usually checked for this function (97/101). Corrections explained: - Added a check for NULL for the symstrdata variable before calling dwelf_strtab_finalize. -