From 872de829ea02491c458f1e9a0bd5aafda2e723bc Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Wed, 9 Sep 2020 15:54:36 +0200 Subject: [PATCH] detect: initialize pointer before calling pcre_study So as not to check an uninitialized value Found by MSAN --- src/detect-parse.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/detect-parse.c b/src/detect-parse.c index b7b1e5980f..b14a15b2e5 100644 --- a/src/detect-parse.c +++ b/src/detect-parse.c @@ -2463,7 +2463,7 @@ void DetectParseRegexAddToFreeList(DetectParseRegex *detect_parse) bool DetectSetupParseRegexesOpts(const char *parse_str, DetectParseRegex *detect_parse, int opts) { - const char *eb; + const char *eb = NULL; int eo; detect_parse->regex = pcre_compile(parse_str, opts, &eb, &eo, NULL);