mirror of
https://github.com/elasota/Aerofoil.git
synced 2025-09-23 23:00:42 +00:00
Fix read overrun
This commit is contained in:
@@ -64,6 +64,7 @@ bool PortabilityLayer::DeflateCodec::DecompressStream(GpIOStream *stream, size_t
|
|||||||
|
|
||||||
zstream.avail_in = sizeToRead;
|
zstream.avail_in = sizeToRead;
|
||||||
zstream.next_in = buffer;
|
zstream.next_in = buffer;
|
||||||
|
inSize -= sizeToRead;
|
||||||
}
|
}
|
||||||
|
|
||||||
int result = inflate(&zstream, Z_NO_FLUSH);
|
int result = inflate(&zstream, Z_NO_FLUSH);
|
||||||
|
Reference in New Issue
Block a user