Re: [PATCH] src: fix DEREF_AFTER_NULL.EX in elflint.c

2025-02-11 Thread Mark Wielaard
Hi Anton, On Mon, 2025-02-03 at 14:45 +0100, Mark Wielaard wrote: > So the code path where prefix != NULL also implies suffix != NULL. > > Maybe the code needs a comment, check or assert to verify this? I added an assert. Pushed, Mark From 316077dd4b34c90f7e4c4228395a580e99239347 Mon Sep 17 00

Re: [PATCH] src: fix DEREF_AFTER_NULL.EX in elflint.c

2025-02-03 Thread Mark Wielaard
Hi Anton, On Sat, Feb 01, 2025 at 01:43:44AM +0300, Anton Moryakov wrote: > Report of the static analyzer: > After having been compared to a NULL value at > elflint.c:252, pointer 'suffix' is dereferenced at elflint.c:260 > by calling function 'stpcpy' > > Corrections explained: > When processing