From 59944c77870e4d09b06dbb11ae3b02c97802beaf Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Mon, 3 Nov 2025 13:45:09 +0530 Subject: [PATCH] detect/flowint: use calloc to avoid undefined behavior --- src/detect-flowint.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-flowint.c b/src/detect-flowint.c index 10b12b9dd3..e1be3e3213 100644 --- a/src/detect-flowint.c +++ b/src/detect-flowint.c @@ -291,7 +291,7 @@ static DetectFlowintData *DetectFlowintParse(DetectEngineCtx *de_ctx, const char goto error; } - sfd = SCMalloc(sizeof(DetectFlowintData)); + sfd = SCCalloc(1, sizeof(DetectFlowintData)); if (unlikely(sfd == NULL)) goto error;