Fix for STM32 crypto hash with WOLFSSL_SMALL_STACK_CACHE possible free of invalid pointer.

This commit is contained in:
David Garske
2020-05-28 07:57:56 -07:00
parent dff7c0fcfa
commit efe9da0994

View File

@ -494,6 +494,7 @@ static int InitSha256(wc_Sha256* sha256)
(void)devId;
(void)heap;
XMEMSET(sha256, 0, sizeof(wc_Sha256));
wc_Stm32_Hash_Init(&sha256->stmCtx);
return 0;
}