aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 10:44:13 -0400
committerJoseph Hunkeler <jhunkeler@gmail.com>2024-09-18 23:08:05 -0400
commitc8c0802c98db5e3d6de6b79887133e0d15567fd8 (patch)
tree18b967b333d2f19025fcd841718a09c3a991f2e7
parentb9d1747f06a226ddbf7a0a61e7e21a9ce272a37a (diff)
downloadstasis-c8c0802c98db5e3d6de6b79887133e0d15567fd8.tar.gz
Fix a likely buffer overflow
* The log_root is appended to log_file, and might exceed the defined length.
-rw-r--r--include/multiprocessing.h2
1 files changed, 1 insertions, 1 deletions
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;