mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-29 18:27:29 +02:00
add a check to help out static analysis tool
This commit is contained in:
committed by
David Garske
parent
afbf09b970
commit
a2b2ce124e
@ -9006,6 +9006,11 @@ WOLFSSL_API int wc_PKCS7_DecodeEnvelopedData(PKCS7* pkcs7, byte* in,
|
||||
}
|
||||
wc_PKCS7_StreamGetVar(pkcs7, 0, 0, &length);
|
||||
tmpIv = pkcs7->stream->tmpIv;
|
||||
if (tmpIv == NULL) {
|
||||
/* check added to help out static analysis tool */
|
||||
ret = MEMORY_E;
|
||||
break;
|
||||
}
|
||||
#endif
|
||||
|
||||
XMEMCPY(tmpIv, &pkiMsg[idx], length);
|
||||
|
Reference in New Issue
Block a user