From e6189d8d0b8fd44c8b593ad6d3bf34c6a5d44618 Mon Sep 17 00:00:00 2001 From: Gabriel Oginski Date: Wed, 22 Sep 2021 11:32:46 +0100 Subject: [PATCH] crypto-native: fix uninitialized variable Type: fix Fixed coverity-issue CID 208547. Originally using uninitialized value when calling one function. This patch fixes the problem by initializing value for one variable. Signed-off-by: Gabriel Oginski Change-Id: Iccfae1e825b4ca4d95a6f724d9b5c51c5addd1b2 --- src/plugins/crypto_native/aes_gcm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/crypto_native/aes_gcm.c b/src/plugins/crypto_native/aes_gcm.c index e0c1e6c12c3..09bb06f1994 100644 --- a/src/plugins/crypto_native/aes_gcm.c +++ b/src/plugins/crypto_native/aes_gcm.c @@ -978,7 +978,7 @@ aes_gcm_dec (u8x16 T, aes_gcm_key_data_t * kd, aes_gcm_counter_t * ctr, n_left - 64, f); return aes4_gcm_calc (T, kd, d4, ctr, inv, outv, rounds, 1, n_left, f); #else - u8x16 d[4]; + u8x16 d[4] = {}; while (n_left >= 128) { T = aes_gcm_calc_double (T, kd, d, ctr, inv, outv, rounds, f); -- 2.16.6