detect: allow longer buffer names

To support hook based buffer names.
pull/12979/head
Victor Julien 10 months ago committed by Victor Julien
parent 94644ac960
commit b5bc00382d

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

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

Loading…
Cancel
Save