From 4612d4b50af3519a8f3ce9141c8daa7567f071d0 Mon Sep 17 00:00:00 2001 From: Travis Green Date: Fri, 9 Aug 2019 15:56:52 -0600 Subject: [PATCH] detect: syntax regex logic update Updated regex logic to include more spaces. Fixed spelling. --- src/detect-dce-iface.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detect-dce-iface.c b/src/detect-dce-iface.c index 07062f7b12..242657f534 100644 --- a/src/detect-dce-iface.c +++ b/src/detect-dce-iface.c @@ -50,7 +50,7 @@ #include "rust.h" #include "rust-smb-detect-gen.h" -#define PARSE_REGEX "^\\s*([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12})(?:\\s*,(<|>|=|!)([0-9]{1,5}))?(?:\\s*,(any_frag))?\\s*$" +#define PARSE_REGEX "^\\s*([0-9a-zA-Z]{8}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{4}-[0-9a-zA-Z]{12})(?:\\s*,\\s*(<|>|=|!)([0-9]{1,5}))?(?:\\s*,\\s*(any_frag))?\\s*$" static pcre *parse_regex = NULL; static pcre_extra *parse_regex_study = NULL; @@ -379,7 +379,7 @@ static int DetectDceIfaceSetup(DetectEngineCtx *de_ctx, Signature *s, const char { DetectDceIfaceData *did = DetectDceIfaceArgParse(arg); if (did == NULL) { - SCLogError(SC_ERR_INVALID_SIGNATURE, "Error parsing dec_iface option in " + SCLogError(SC_ERR_INVALID_SIGNATURE, "Error parsing dce_iface option in " "signature"); return -1; } -- 2.47.2