From 840bfdc81d1a24590caf6e13ebb3dabad64d5bb0 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 3 Sep 2024 09:51:43 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20for=20`isAllocated=E2=80=99=20may=20be=20?= =?UTF-8?q?used=20uninitialized.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- wolfcrypt/src/aes.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/wolfcrypt/src/aes.c b/wolfcrypt/src/aes.c index 3bba8e0b29..ea0d320c48 100644 --- a/wolfcrypt/src/aes.c +++ b/wolfcrypt/src/aes.c @@ -13803,6 +13803,10 @@ static WARN_UNUSED_RESULT int AesSivCipher( } #endif + if (aes != NULL) { + XMEMSET(&aes, 0, sizeof(Aes)); + } + if (ret == 0) { ret = wc_AesInit(aes, NULL, INVALID_DEVID); if (ret != 0) {