change call to GetSigAlg in ASN original to sanity check length

This commit is contained in:
JacobBarthelmeh
2026-04-27 17:21:30 -06:00
parent a057975347
commit a478029083
+1 -1
View File
@@ -2785,7 +2785,7 @@ static int GetSigAlg(DecodedCert* cert, word32* sigOid, word32 maxIdx)
int len;
WOLFSSL_MSG("Cert sigAlg is RSASSA-PSS; decoding params");
if (GetHeader(cert->source, &tag, &tmpIdx, &len, endSeqIdx, 0) < 0) {
if (GetHeader(cert->source, &tag, &tmpIdx, &len, endSeqIdx, 1) < 0) {
return ASN_PARSE_E;
}
cert->sigParamsIndex = cert->srcIdx;