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
pull/12499/head
Eric Leblond 3 months ago committed by Victor Julien
parent a2905ae5d4
commit 8230cb5672

@ -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

Loading…
Cancel
Save