From f0112c2f7dc8598485dd3bd8c1d15e825e52e1c5 Mon Sep 17 00:00:00 2001 From: David Garske Date: Tue, 21 Feb 2017 10:38:44 -0800 Subject: [PATCH] Fix for ProcessUserChain with WOLFSSL_SMALL_STACK defined causing stack corruption. --- src/ssl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ssl.c b/src/ssl.c index 96703376a..853b4bfc9 100644 --- a/src/ssl.c +++ b/src/ssl.c @@ -3932,7 +3932,7 @@ static int ProcessUserChain(WOLFSSL_CTX* ctx, const unsigned char* buff, #endif byte* chainBuffer = staticBuffer; int dynamicBuffer = 0; - word32 bufferSz = FILE_BUFFER_SIZE; + word32 bufferSz = sizeof(staticBuffer); long consumed = info->consumed; word32 idx = 0; int gotOne = 0;