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 0b0cd76
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions wolfcrypt/src/aes.c
Original file line number Diff line number Diff line change
Expand Up @@ -13800,7 +13800,12 @@ static WARN_UNUSED_RESULT int AesSivCipher(
if (aes == NULL) {
ret = MEMORY_E;
}
else {
XMEMSET(aes, 0, sizeof(Aes));
}
}
#else
XMEMSET(aes, 0, sizeof(Aes));
#endif

if (ret == 0) {
Expand Down

0 comments on commit 0b0cd76

Please sign in to comment.