From c8c0802c98db5e3d6de6b79887133e0d15567fd8 Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Wed, 18 Sep 2024 10:44:13 -0400 Subject: Fix a likely buffer overflow * The log_root is appended to log_file, and might exceed the defined length. --- include/multiprocessing.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'include') diff --git a/include/multiprocessing.h b/include/multiprocessing.h index 2db33df..1974e41 100644 --- a/include/multiprocessing.h +++ b/include/multiprocessing.h @@ -17,7 +17,7 @@ struct MultiProcessingTask { int status; ///< Child process exit status int signaled_by; ///< Last signal received, if any char ident[255]; ///< Identity of the pool task - char log_file[255]; ///< Path to stdout/stderr log file + char log_file[PATH_MAX]; ///< Full path to stdout/stderr log file char parent_script[PATH_MAX]; ///< Path to temporary script executing the task struct { struct timespec t_start; -- cgit