Skip to content

Commit baf1247

Browse files
committed
verify algoSz is <= MAX_ALGO_SZ
1 parent 1f66695 commit baf1247

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

wolfcrypt/src/asn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42553,7 +42553,7 @@ int wc_MakeCRL_ex(const byte* issuerDer, word32 issuerSz,
4255342553

4255442554
/* Signature AlgorithmIdentifier */
4255542555
algoSz = SetAlgoID(sigType, algoBuf, oidSigType, 0);
42556-
if (algoSz == 0)
42556+
if (algoSz == 0 || algoSz > MAX_ALGO_SZ)
4255742557
return ALGO_ID_E;
4255842558

4255942559
/* thisUpdate */

0 commit comments

Comments
 (0)