From d4e64e3f24fd447f2a271d95a89ba668fed50ed3 Mon Sep 17 00:00:00 2001 From: Shivani Bhardwaj Date: Wed, 3 Apr 2024 12:32:12 +0530 Subject: [PATCH] base64_data: inform of use w fast_pattern Bug 6859 --- src/detect-fast-pattern.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/detect-fast-pattern.c b/src/detect-fast-pattern.c index b82f3274d7..ef6007a44e 100644 --- a/src/detect-fast-pattern.c +++ b/src/detect-fast-pattern.c @@ -274,6 +274,9 @@ static int DetectFastPatternSetup(DetectEngineCtx *de_ctx, Signature *s, const c } } } + if (SigMatchListSMBelongsTo(s, pm) == DETECT_SM_LIST_BASE64_DATA) { + SCLogInfo("fast_pattern is ineffective with base64_data"); + } cd->flags |= DETECT_CONTENT_FAST_PATTERN; return 0; }