Skip to content

Commit

Permalink
util/debug: increase max length of message
Browse files Browse the repository at this point in the history
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
  • Loading branch information
regit committed Dec 1, 2024
1 parent 287d836 commit 23e6b9a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/util-debug.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 23e6b9a

Please sign in to comment.