From b5bc00382df3765a8c7031fc6429a9ac9d53f43e Mon Sep 17 00:00:00 2001 From: Victor Julien Date: Mon, 20 Jan 2025 09:05:04 +0100 Subject: [PATCH] detect: allow longer buffer names To support hook based buffer names. --- src/detect-engine.c | 2 +- src/detect.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-engine.c b/src/detect-engine.c index 6df8f6f1bf..ccf8f122d8 100644 --- a/src/detect-engine.c +++ b/src/detect-engine.c @@ -1032,7 +1032,7 @@ static void DetectBufferTypeFree(void) #endif static int DetectBufferTypeAdd(const char *string) { - BUG_ON(string == NULL || strlen(string) >= 32); + BUG_ON(string == NULL || strlen(string) >= 64); DetectBufferType *map = SCCalloc(1, sizeof(*map)); if (map == NULL) diff --git a/src/detect.h b/src/detect.h index 67086328b4..2dd6615df0 100644 --- a/src/detect.h +++ b/src/detect.h @@ -460,7 +460,7 @@ typedef struct DetectEngineAppInspectionEngine_ { } DetectEngineAppInspectionEngine; typedef struct DetectBufferType_ { - char name[32]; + char name[64]; char description[128]; int id; int parent_id; -- 2.47.2