Please use System.IO.Compression! A fork of the DotNetZip project without signing with a solution that compiles cleanly. This project aims to follow semver to avoid versioning conflicts. DotNetZip is a FAST, FREE class library and toolset for manipulating zip files. Use VB, C# or any .NET language to easily create, extract, or update zip files.
Other
545
stars
218
forks
source link
Bugfix in OffsetStream.Seek for reading embedded zip archives #283
When reading a zip archive embedded in another file, we get a BadReadException: "Bad signature at position [...]".
This is due to a bug in OffsetStream.Seek().
_originalPosition should only be added to the offset when origin == SeekOrigin.Begin.
When reading a zip archive embedded in another file, we get a BadReadException: "Bad signature at position [...]". This is due to a bug in OffsetStream.Seek(). _originalPosition should only be added to the offset when origin == SeekOrigin.Begin.