forked from wolfSSL/wolfssl
Fix heap-buffer-overflow in GetBerHeader
This commit is contained in:
@@ -4458,7 +4458,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
|
|||||||
return ASN_PARSE_E;
|
return ASN_PARSE_E;
|
||||||
|
|
||||||
#ifndef NO_PKCS7_STREAM
|
#ifndef NO_PKCS7_STREAM
|
||||||
if ((ret = wc_PKCS7_SetMaxStream(pkcs7, in, inSz)) != 0) {
|
if ((ret = wc_PKCS7_SetMaxStream(pkcs7, in, len)) != 0) {
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Reference in New Issue
Block a user