Skip to content

Commit ce7b81b

Browse files
committed
break when idx greater than MAX_CHAIN_DEPTH
1 parent a963c5f commit ce7b81b

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/internal.c

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17597,6 +17597,10 @@ static int DoCertificateStatus(WOLFSSL* ssl, byte* input, word32* inOutIdx,
1759717597
*inOutIdx += status_length;
1759817598
list_length -= status_length;
1759917599
}
17600+
if (idx >= MAX_CHAIN_DEPTH) {
17601+
ret = BUFFER_ERROR;
17602+
break;
17603+
}
1760017604
idx++;
1760117605
}
1760217606

0 commit comments

Comments
 (0)