summaryrefslogtreecommitdiffstats
path: root/src/detect-engine-siggroup.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--src/detect-engine-siggroup.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/detect-engine-siggroup.c b/src/detect-engine-siggroup.c
index 67af1c1..c75a5d0 100644
--- a/src/detect-engine-siggroup.c
+++ b/src/detect-engine-siggroup.c
@@ -48,6 +48,7 @@
#include "util-error.h"
#include "util-debug.h"
+#include "util-validate.h"
#include "util-cidr.h"
#include "util-unittest.h"
#include "util-unittest-helper.h"
@@ -637,6 +638,8 @@ void SigGroupHeadSetFilestoreCount(DetectEngineCtx *de_ctx, SigGroupHead *sgh)
continue;
if (SignatureIsFilestoring(s)) {
+ // should be insured by caller that we do not overflow
+ DEBUG_VALIDATE_BUG_ON(sgh->filestore_cnt == UINT16_MAX);
sgh->filestore_cnt++;
}
}