From 52c2c126c1765831a8bf936705c1b3423e2baa2f Mon Sep 17 00:00:00 2001 From: toddouska Date: Mon, 1 Dec 2014 15:53:59 -0800 Subject: [PATCH] turncate hashSigAlgoSz to max buffer size --- src/internal.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/internal.c b/src/internal.c index 69ca5dbb4..c2e6d3095 100644 --- a/src/internal.c +++ b/src/internal.c @@ -12980,6 +12980,9 @@ int DoSessionTicket(CYASSL* ssl, XMEMCPY(clSuites.hashSigAlgo, &input[i], min(clSuites.hashSigAlgoSz, HELLO_EXT_SIGALGO_MAX)); i += clSuites.hashSigAlgoSz; + + if (clSuites.hashSigAlgoSz > HELLO_EXT_SIGALGO_MAX) + clSuites.hashSigAlgoSz = HELLO_EXT_SIGALGO_MAX; } else i += extSz;