mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-30 02:37:28 +02:00
fixed heaap corruptions
This commit is contained in:
@ -286,7 +286,7 @@ int wc_DeCompressDynamic(byte** out, int maxSz, int memoryType,
|
||||
XFREE(tmp, heap, memoryType);
|
||||
tmp = newTmp;
|
||||
stream.next_out = tmp + stream.total_out;
|
||||
stream.avail_out = stream.avail_out + (uInt)tmpSz;
|
||||
stream.avail_out = stream.avail_out + (uInt)inSz;
|
||||
tmpSz = newSz;
|
||||
result = inflate(&stream, Z_BLOCK);
|
||||
}
|
||||
|
Reference in New Issue
Block a user