haf / DotNetZip.Semverd

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

Open Anlo2846 opened 10 months ago

Anlo2846 commented 10 months ago

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.