mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-11 13:35:00 +00:00
GZipArchive doesn't support entry re-reading #146
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 @alexmgerasimov on GitHub (Nov 18, 2016).
Hello!
GZipArchive class doesn't support re-reading of the entry. The code below crashes:
The exception is the follwoing:
It seems to me this happens because GZipFilePart doesn't rewind internal stream in the GetCompressedStream() after first reading. GZipFilePart constructor should remember stream position after GZip header reading and validation and set this initial position to the stream on each GetCompressedStream() call.