From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mga05.intel.com (mga05.intel.com [192.55.52.43]) by dpdk.org (Postfix) with ESMTP id 7B9A814EC for ; Wed, 7 Nov 2018 13:00:12 +0100 (CET) X-Amp-Result: SKIPPED(no attachment in message) X-Amp-File-Uploaded: False Received: from orsmga008.jf.intel.com ([10.7.209.65]) by fmsmga105.fm.intel.com with ESMTP/TLS/DHE-RSA-AES256-GCM-SHA384; 07 Nov 2018 04:00:11 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.54,475,1534834800"; d="scan'208";a="90138752" Received: from silpixa00399502.ir.intel.com (HELO silpixa00399502.ger.corp.intel.com) ([10.237.223.218]) by orsmga008.jf.intel.com with ESMTP; 07 Nov 2018 04:00:09 -0800 From: Marko Kovacevic To: dev@dpdk.org Cc: thomas@monjalon.net, akhil.goyal@nxp.com, ferruh.yigit@intel.com, Marko Kovacevic Date: Wed, 7 Nov 2018 12:00:06 +0000 Message-Id: <20181107120006.3779-1-marko.kovacevic@intel.com> X-Mailer: git-send-email 2.9.5 Subject: [dpdk-dev] [PATCH] examples/fips_validation: fix uninitialized pointer read X-BeenThere: dev@dpdk.org X-Mailman-Version: 2.1.15 Precedence: list List-Id: DPDK patches and discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Nov 2018 12:00:12 -0000 Fixing a bug raised in coverity using uninitialized value. Coverity issue: 325881 Fixes: 527cbf3d5ee3 ("examples/fips_validation: support TDES parsing") Cc: marko.kovacevic@intel.com Signed-off-by: Marko Kovacevic --- examples/fips_validation/fips_validation_tdes.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/fips_validation/fips_validation_tdes.c b/examples/fips_validation/fips_validation_tdes.c index 5064ff3..15ee434 100644 --- a/examples/fips_validation/fips_validation_tdes.c +++ b/examples/fips_validation/fips_validation_tdes.c @@ -202,7 +202,7 @@ parse_test_tdes_writeback(struct fips_val *val) static int writeback_tdes_hex_str(const char *key, char *dst, struct fips_val *val) { - struct fips_val tmp_val; + struct fips_val tmp_val = {0}; tmp_val.len = 8; -- 2.9.5