mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2026-07-08 01:50:48 +02:00
verify algoSz is <= MAX_ALGO_SZ
This commit is contained in:
+1
-1
@@ -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 */
|
||||
|
||||
Reference in New Issue
Block a user