We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f44178c commit f62d0faCopy full SHA for f62d0fa
1 file changed
src/dtls.c
@@ -678,6 +678,8 @@ static int SendStatelessReplyDtls13(const WOLFSSL* ssl, WolfSSL_CH* ch)
678
ERROR_OUT(BUFFER_ERROR, dtls13_cleanup);
679
if ((sigAlgs.size % 2) != 0)
680
681
+ if (sigAlgs.size > WOLFSSL_MAX_SIGALGO)
682
+ ERROR_OUT(BUFFER_ERROR, dtls13_cleanup);
683
suites.hashSigAlgoSz = (word16)sigAlgs.size;
684
XMEMCPY(suites.hashSigAlgo, sigAlgs.elements, sigAlgs.size);
685
haveSA = 1;
0 commit comments