mirror of https://github.com/wolfSSL/wolfssl.git
Fix for ProcessUserChain with WOLFSSL_SMALL_STACK defined causing stack corruption.
parent
db1f205522
commit
f0112c2f7d
|
@ -3932,7 +3932,7 @@ static int ProcessUserChain(WOLFSSL_CTX* ctx, const unsigned char* buff,
|
||||||
#endif
|
#endif
|
||||||
byte* chainBuffer = staticBuffer;
|
byte* chainBuffer = staticBuffer;
|
||||||
int dynamicBuffer = 0;
|
int dynamicBuffer = 0;
|
||||||
word32 bufferSz = FILE_BUFFER_SIZE;
|
word32 bufferSz = sizeof(staticBuffer);
|
||||||
long consumed = info->consumed;
|
long consumed = info->consumed;
|
||||||
word32 idx = 0;
|
word32 idx = 0;
|
||||||
int gotOne = 0;
|
int gotOne = 0;
|
||||||
|
|
Loading…
Reference in New Issue