verify algoSz is <= MAX_ALGO_SZ

This commit is contained in:
Ruby Martin
2026-03-10 17:33:32 -06:00
parent 8314aa56ae
commit d432759fdd
+1 -1
View File
@@ -42553,7 +42553,7 @@ int wc_MakeCRL_ex(const byte* issuerDer, word32 issuerSz,
/* Signature AlgorithmIdentifier */
algoSz = SetAlgoID(sigType, algoBuf, oidSigType, 0);
if (algoSz == 0)
if (algoSz == 0 || algoSz > MAX_ALGO_SZ)
return ALGO_ID_E;
/* thisUpdate */