From: Philippe Antoine Date: Wed, 9 Sep 2020 13:54:36 +0000 (+0200) Subject: detect: initialize pointer before calling pcre_study X-Git-Tag: suricata-6.0.0-rc1~4 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=872de829ea02491c458f1e9a0bd5aafda2e723bc;p=thirdparty%2Fsuricata.git detect: initialize pointer before calling pcre_study So as not to check an uninitialized value Found by MSAN --- 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);