mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-10 13:39:12 +00:00
ArgumentOutOfRangeException on Zip expansion #141
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 @dkekesi on GitHub (Nov 7, 2016).
I get the following exception when expanding a certain Zip archive:
System.ArgumentOutOfRangeException: Stream length must be non-negative and less than 2^31 - 1 - origin.
Parameter name: value
at System.IO.MemoryStream.set_Position(Int64 value)
at SharpCompress.Common.Zip.ZipHeaderFactory.ReadHeader(UInt32 headerBytes, BinaryReader reader)
at SharpCompress.Common.Zip.SeekableZipHeaderFactory.GetLocalHeader(Stream stream, DirectoryEntryHeader directoryEntryHeader)
at SharpCompress.Common.Zip.SeekableZipFilePart.LoadLocalHeader()
at SharpCompress.Common.Zip.SeekableZipFilePart.GetCompressedStream()
at SharpCompress.Archives.IArchiveEntryExtensions.WriteTo(IArchiveEntry archiveEntry, Stream streamToWriteTo)
Can you look into what the problem may be? Other programs can expand the Zip. The file itself is merely 300K in size.
Thanks.