From f9c6b60edc5f084ffe548cdd599a4a7a7d4bb656 Mon Sep 17 00:00:00 2001 From: Philippe Antoine Date: Thu, 1 Oct 2020 15:21:47 +0200 Subject: [PATCH] detect: fix use of uninit memory in DetectDatarepParse By initializing to empty string --- src/detect-datarep.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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;