Fix heap-buffer-overflow in GetBerHeader

This commit is contained in:
Eric Blankenhorn
2022-01-03 14:51:47 -06:00
parent 70ca57790c
commit 3134bd2e71

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