[LTP] [PATCH v2 1/2] inotify: replace strcpy() with snprintf()
Andrea Cervesato
andrea.cervesato@suse.com
Mon Mar 16 13:30:19 CET 2026
Hi!
> #define BUF_SIZE 256
> -static char fname1[BUF_SIZE], fname2[BUF_SIZE], fname3[BUF_SIZE];
> +static char fname1[BUF_SIZE], fname2[BUF_SIZE+32], fname3[BUF_SIZE+32];
This is a hack around the actual PATH_MAX feature. We need to use that one
instead of defining a new BUF_SIZE that might overflow.
--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com
More information about the ltp
mailing list