Merge pull request #759 from dgarske/fix_smallstack_procuserhcain

Fix for ProcessUserChain with WOLFSSL_SMALL_STACK defined causing stack corruption
This commit is contained in:
toddouska
2017-02-21 13:20:43 -08:00
committed by GitHub

View File

@@ -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;