Skip to content

Commit

Permalink
Fix for `isAllocated’ may be used uninitialized.
Browse files Browse the repository at this point in the history
  • Loading branch information
dgarske committed Sep 3, 2024
1 parent c449565 commit 840bfdc
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions wolfcrypt/src/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 840bfdc

Please sign in to comment.