Re: [dev] segfault in basename

From: Carlos Torres <vlaadbrain_AT_gmail.com>
Date: Sun, 2 Nov 2025 07:24:25 -0500

On Thu, Oct 23, 2025 at 5:49 AM Frank Busse <f.busse_AT_imperial.ac.uk> wrote:
> ---
> /basename "" ""
>

Thanks Frank,

to compile sbase with gcc asan one can edit config.mk
CFLAGS = -fsanitize=address -g
LDFLAGS = -lasan

this bug comes along between basename.c:29-32 because suffix strlen
should always be greater than 0 and less than strlen of path

BTW... i can do better with my patch and message. please ignore that one.

--Carlos
Received on Sun Nov 02 2025 - 13:24:25 CET

This archive was generated by hypermail 2.3.0 : Tue Nov 04 2025 - 14:48:09 CET