Skip to content

Commit a478029

Browse files
change call to GetSigAlg in ASN original to sanity check length
1 parent a057975 commit a478029

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn_orig.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2785,7 +2785,7 @@ static int GetSigAlg(DecodedCert* cert, word32* sigOid, word32 maxIdx)
27852785
int len;
27862786

27872787
WOLFSSL_MSG("Cert sigAlg is RSASSA-PSS; decoding params");
2788-
if (GetHeader(cert->source, &tag, &tmpIdx, &len, endSeqIdx, 0) < 0) {
2788+
if (GetHeader(cert->source, &tag, &tmpIdx, &len, endSeqIdx, 1) < 0) {
27892789
return ASN_PARSE_E;
27902790
}
27912791
cert->sigParamsIndex = cert->srcIdx;

0 commit comments

Comments
 (0)