[LTP] [PATCH] read_all: Fix buffer too small for long paths

Andrea Cervesato andrea.cervesato@suse.com
Mon Sep 7 08:40:37 CEST 2026


Hi Michael,

>  #define QUEUE_SIZE 16384
> -#define BUFFER_SIZE 1024
> +#define BUFFER_SIZE 4096

better to use PATH_MAX here and make sure that when we create a path,
PATH_MAX is always preserved as the maximum size of the strings.

--
Andrea Cervesato
SUSE QE Automation Engineer Linux
andrea.cervesato@suse.com


More information about the ltp mailing list