From: Eric Leblond Date: Fri, 29 Nov 2024 17:46:11 +0000 (+0100) Subject: util/debug: increase max length of message X-Git-Tag: suricata-8.0.0-beta1~501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8230cb5672e29c89a3feaf9670b5667e38a7149f;p=thirdparty%2Fsuricata.git util/debug: increase max length of message When a signature is incorrect, its full content is logged in a message with some other information such as rules file name. As a result, the log message must be longer than a maximum signature length which is 8192. Ticket: 7419 --- diff --git a/src/util-debug.h b/src/util-debug.h index cb22e90973..29beb912c9 100644 --- a/src/util-debug.h +++ b/src/util-debug.h @@ -80,8 +80,8 @@ typedef enum { #define SC_LOG_DEF_LOG_FORMAT_REL_CONFIG "[%i] %d: %S: %M" #define SC_LOG_DEF_LOG_FORMAT_DEBUG "%d: %S: %M [%n:%f:%l]" -/* The maximum length of the log message */ -#define SC_LOG_MAX_LOG_MSG_LEN 2048 +/* The maximum length of the log message: we add max rule size and other info */ +#define SC_LOG_MAX_LOG_MSG_LEN 8192 + PATH_MAX + 512 /* The maximum length of the log format */ #define SC_LOG_MAX_LOG_FORMAT_LEN 128