From: Victor Julien Date: Mon, 20 Jan 2025 08:05:04 +0000 (+0100) Subject: detect: allow longer buffer names X-Git-Tag: suricata-8.0.0-beta1~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b5bc00382df3765a8c7031fc6429a9ac9d53f43e;p=thirdparty%2Fsuricata.git detect: allow longer buffer names To support hook based buffer names. --- 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;