Merge pull request #4717 from embhorn/zd13452

Fix heap-buffer-overflow in GetBerHeader
This commit is contained in:
JacobBarthelmeh
2022-01-04 16:11:03 -07:00
committed by GitHub

View File

@@ -4458,7 +4458,7 @@ static int PKCS7_VerifySignedData(PKCS7* pkcs7, const byte* hashBuf,
return ASN_PARSE_E;
#ifndef NO_PKCS7_STREAM
if ((ret = wc_PKCS7_SetMaxStream(pkcs7, in, inSz)) != 0) {
if ((ret = wc_PKCS7_SetMaxStream(pkcs7, in, len)) != 0) {
break;
}
#endif