Merge pull request #6202 from philljj/zd15807

Fix out-of-bounds read in CRL parsing
This commit is contained in:
JacobBarthelmeh
2023-03-20 14:19:01 -06:00
committed by GitHub

View File

@ -35655,7 +35655,7 @@ static int ParseCRL_Extensions(DecodedCRL* dcrl, const byte* buf,
if (ret != 0)
return ret;
}
else {
else if (length == 1) {
dcrl->crlNumber = buf[idx];
}
}