mirror of
https://github.com/wolfSSL/wolfssl.git
synced 2025-07-31 19:24:42 +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);
|
XFREE(tmp, heap, memoryType);
|
||||||
tmp = newTmp;
|
tmp = newTmp;
|
||||||
stream.next_out = tmp + stream.total_out;
|
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;
|
tmpSz = newSz;
|
||||||
result = inflate(&stream, Z_BLOCK);
|
result = inflate(&stream, Z_BLOCK);
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user