mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
Always initialize 'decryptedKey'
Warning 750167.5627928
This commit is contained in:
@ -11830,10 +11830,6 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
|
||||
}
|
||||
#endif
|
||||
|
||||
#ifndef WOLFSSL_SMALL_STACK
|
||||
XMEMSET(decryptedKey, 0, MAX_ENCRYPTED_KEY_SZ);
|
||||
#endif
|
||||
|
||||
switch (pkcs7->state) {
|
||||
case WC_PKCS7_START:
|
||||
case WC_PKCS7_INFOSET_START:
|
||||
@ -11872,6 +11868,7 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
|
||||
pkcs7->stream->key = decryptedKey;
|
||||
#endif
|
||||
#endif
|
||||
XMEMSET(decryptedKey, 0, MAX_ENCRYPTED_KEY_SZ);
|
||||
FALL_THROUGH;
|
||||
|
||||
case WC_PKCS7_DECRYPT_KTRI:
|
||||
|
Reference in New Issue
Block a user