From df3c0a6b728a1f9566d34e9de93336cd84e57529 Mon Sep 17 00:00:00 2001 From: Francisco Molina Date: Tue, 1 Mar 2022 09:55:25 +0100 Subject: [PATCH] tests/sys_crypto: fix potentially unitialized error --- tests/sys_crypto/tests-crypto-modes-ocb.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/tests/sys_crypto/tests-crypto-modes-ocb.c b/tests/sys_crypto/tests-crypto-modes-ocb.c index be90f630ff..49969a8b5d 100644 --- a/tests/sys_crypto/tests-crypto-modes-ocb.c +++ b/tests/sys_crypto/tests-crypto-modes-ocb.c @@ -401,7 +401,11 @@ static void test_crypto_modes_ocb_decrypt(void) static void test_crypto_modes_ocb_bad_parameter_values(void) { - uint8_t key[16], auth_data[1], nonce[16], input[16], output[32]; + uint8_t key[16] = {0}; + uint8_t auth_data[1] = {0}; + uint8_t nonce[16] = {0}; + uint8_t input[16] = {0}; + uint8_t output[32] = {0}; cipher_t cipher; cipher_init(&cipher, CIPHER_AES, key, 16);