mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-03-24 09:37:18 +01:00
Avoid use of uninitialized array
This commit is contained in:
@@ -1125,6 +1125,7 @@ static int wc_HpkeContextOpenBase(Hpke* hpke, HpkeBaseContext* context,
|
||||
return BAD_FUNC_ARG;
|
||||
}
|
||||
|
||||
XMEMSET(nonce, 0, sizeof(nonce));
|
||||
#ifdef WOLFSSL_SMALL_STACK
|
||||
aes_key = (Aes*)XMALLOC(sizeof(Aes), hpke->heap, DYNAMIC_TYPE_AES);
|
||||
if (aes_key == NULL) {
|
||||
|
||||
@@ -8693,6 +8693,7 @@ static int wc_PKCS7_DecryptKtri(PKCS7* pkcs7, byte* in, word32 inSz,
|
||||
mp_int serialNum[1];
|
||||
RsaKey privKey[1];
|
||||
#endif
|
||||
XMEMSET(issuerHash, 0, sizeof(issuerHash));
|
||||
|
||||
#if defined(WOLFSSL_SM2) && defined(WOLFSSL_SM3)
|
||||
keyIdSize = wc_HashGetDigestSize(wc_HashTypeConvert(HashIdAlg(
|
||||
|
||||
Reference in New Issue
Block a user