From: Philippe Antoine Date: Thu, 1 Oct 2020 13:21:47 +0000 (+0200) Subject: detect: fix use of uninit memory in DetectDatarepParse X-Git-Tag: suricata-6.0.0~11 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9c6b60edc5f084ffe548cdd599a4a7a7d4bb656;p=thirdparty%2Fsuricata.git detect: fix use of uninit memory in DetectDatarepParse By initializing to empty string --- diff --git a/src/detect-datarep.c b/src/detect-datarep.c index 72c85b9c3c..171566eded 100644 --- a/src/detect-datarep.c +++ b/src/detect-datarep.c @@ -293,7 +293,7 @@ static int DetectDatarepSetup (DetectEngineCtx *de_ctx, Signature *s, const char SigMatch *sm = NULL; char cmd_str[16] = "", name[64] = ""; enum DatasetTypes type = DATASET_TYPE_NOTSET; - char load[PATH_MAX]; + char load[PATH_MAX] = ""; uint16_t value = 0; uint64_t memcap = 0; uint32_t hashsize = 0;