Merge pull request #6735 from anhu/lteq_0

Propose to convert a less than 0 to less than or equal to 0
This commit is contained in:
Sean Parkinson
2023-09-14 07:08:22 +10:00
committed by GitHub

View File

@ -12052,7 +12052,7 @@ WOLFSSL_API int wc_PKCS7_DecodeAuthEnvelopedData(PKCS7* pkcs7, byte* in,
encodedAttribs = pkiMsg + idx;
idx++;
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) < 0)
if (GetLength(pkiMsg, &idx, &length, pkiMsgSz) <= 0)
ret = ASN_PARSE_E;
#ifndef NO_PKCS7_STREAM
pkcs7->stream->expected = length;