From: Philippe Antoine Date: Thu, 28 Jan 2021 16:02:19 +0000 (+0100) Subject: detect: initializes memory in bytemath parsing X-Git-Tag: suricata-7.0.0-beta1~1812 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2b043150ed11b7def7047fb4170c27e95b00099f;p=thirdparty%2Fsuricata.git detect: initializes memory in bytemath parsing --- diff --git a/src/detect-bytemath.c b/src/detect-bytemath.c index 8994c13e92..9a7005d81b 100644 --- a/src/detect-bytemath.c +++ b/src/detect-bytemath.c @@ -262,7 +262,7 @@ static DetectByteMathData *DetectByteMathParse(DetectEngineCtx *de_ctx, const ch #undef MAX_SUBSTRINGS #define MAX_SUBSTRINGS 100 int ov[MAX_SUBSTRINGS]; - char tmp_str[128]; + char tmp_str[128] = ""; ret = DetectParsePcreExec(&parse_regex, arg, 0, 0, ov, MAX_SUBSTRINGS); if (ret < MIN_GROUP || ret > MAX_GROUP) {