detect: initialize pointer before calling pcre_study

So as not to check an uninitialized value
Found by MSAN
pull/5409/head
Philippe Antoine 5 years ago
parent f21a4bc40e
commit 872de829ea

@ -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);

Loading…
Cancel
Save