From 2bc0516cf71acd04184e10e94f67a9e531c224e9 Mon Sep 17 00:00:00 2001 From: Marek Schimara Date: Tue, 14 Jun 2016 16:04:09 +0200 Subject: [PATCH] src/rrd_tune.c: fix Coverity CID#32430 Uninitialized pointer read CWE-457 / https://cwe.mitre.org/data/definitions/457.html --- src/rrd_tune.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/rrd_tune.c b/src/rrd_tune.c index a9f05ba9..47163c28 100644 --- a/src/rrd_tune.c +++ b/src/rrd_tune.c @@ -116,6 +116,9 @@ int rrd_tune( struct optparse options; int opt; + /* Fix CWE-457 */ + memset(&rrd, 0, sizeof(rrd_t)); + /* before we open the input RRD, we should flush it from any caching daemon, because we might totally rewrite it later on */ -- 2.47.2