DPDK patches and discussions
 help / color / mirror / Atom feed
* [dpdk-dev] [PATCH] examples/fips_validation: fix uninitialized pointer read
@ 2018-11-07 12:00 Marko Kovacevic
  2018-11-07 13:55 ` Thomas Monjalon
  0 siblings, 1 reply; 2+ messages in thread
From: Marko Kovacevic @ 2018-11-07 12:00 UTC (permalink / raw)
  To: dev; +Cc: thomas, akhil.goyal, ferruh.yigit, Marko Kovacevic

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 <marko.kovacevic@intel.com>
---
 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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [dpdk-dev] [PATCH] examples/fips_validation: fix uninitialized pointer read
  2018-11-07 12:00 [dpdk-dev] [PATCH] examples/fips_validation: fix uninitialized pointer read Marko Kovacevic
@ 2018-11-07 13:55 ` Thomas Monjalon
  0 siblings, 0 replies; 2+ messages in thread
From: Thomas Monjalon @ 2018-11-07 13:55 UTC (permalink / raw)
  To: Marko Kovacevic; +Cc: dev, akhil.goyal, ferruh.yigit

07/11/2018 13:00, Marko Kovacevic:
> 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 <marko.kovacevic@intel.com>

Applied, thanks

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2018-11-07 13:55 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2018-11-07 12:00 [dpdk-dev] [PATCH] examples/fips_validation: fix uninitialized pointer read Marko Kovacevic
2018-11-07 13:55 ` Thomas Monjalon

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).