From: Shivani Bhardwaj Date: Wed, 3 Apr 2024 07:02:12 +0000 (+0530) Subject: base64_data: inform of use w fast_pattern X-Git-Tag: suricata-7.0.5~31 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d4e64e3f24fd447f2a271d95a89ba668fed50ed3;p=thirdparty%2Fsuricata.git base64_data: inform of use w fast_pattern Bug 6859 --- 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; }