mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-05 12:10:51 +02:00
Merge pull request #10333 from JacobBarthelmeh/oss-fuzz
change call to GetSigAlg in ASN original to sanity check length
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user