Fix out-of-bounds read in CRL parsing

This commit is contained in:
jordan
2023-03-17 22:33:35 -05:00
parent 327692b09f
commit 2fe473cf9f

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];
}
}