mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-04 05:25:00 +00:00
Chunked read for ZLibBaseStream might give error results #470
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @amosonn on GitHub (Sep 14, 2021).
When using
DeflateStream(which wraps ZLibBaseStream), if the size of the read is unfortunate, we might not get all of the compressed data. When the read from theDeflateStreamon which the last piece of input data is read is not large enough to read all of the deflated data, the rest will get lost, since we already set the "nomoredata" flag. See PR #616 for example test which fails and for fix.