mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +02:00
Fix for STM32 crypto hash with WOLFSSL_SMALL_STACK_CACHE
possible free of invalid pointer.
This commit is contained in:
@@ -494,6 +494,7 @@ static int InitSha256(wc_Sha256* sha256)
|
|||||||
(void)devId;
|
(void)devId;
|
||||||
(void)heap;
|
(void)heap;
|
||||||
|
|
||||||
|
XMEMSET(sha256, 0, sizeof(wc_Sha256));
|
||||||
wc_Stm32_Hash_Init(&sha256->stmCtx);
|
wc_Stm32_Hash_Init(&sha256->stmCtx);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user