sharpcompress icon indicating copy to clipboard operation
sharpcompress copied to clipboard

Use winrar to encrypt files, and file name encryption, throw an error when using SharpCompress to decompress

Open toolgood opened this issue 4 years ago • 1 comments

Use winrar to encrypt files, and file name encryption, throw an error when using SharpCompress to decompress

.net core 3.1 SharpCompress Version=0.26.0

throw error: SharpCompress Arithmetic operation resulted in an overflow.

at SharpCompress.IO.MarkingBinaryReader.ReadRarVIntByte(Int32 maxBytes) at SharpCompress.Common.Rar.Headers.RarHeader..ctor(RarCrcBinaryReader reader, Boolean isRar5, ArchiveEncoding archiveEncoding) at SharpCompress.Common.Rar.Headers.RarHeader.TryReadBase(RarCrcBinaryReader reader, Boolean isRar5, ArchiveEncoding archiveEncoding) at SharpCompress.Common.Rar.Headers.RarHeaderFactory.TryReadNextHeader(Stream stream) at SharpCompress.Common.Rar.Headers.RarHeaderFactory.<ReadHeaders>d__12.MoveNext() at SharpCompress.Common.Rar.RarVolume.<GetVolumeFileParts>d__10.MoveNext() at System.Collections.Generic.LargeArrayBuilder1.AddRange(IEnumerable1 items) at System.Collections.Generic.EnumerableHelpers.ToArray[T](IEnumerable1 source) at System.Linq.Enumerable.ToArray[TSource](IEnumerable1 source) at SharpCompress.Archives.Rar.FileInfoRarArchiveVolume..ctor(FileInfo fileInfo, ReaderOptions options) at SharpCompress.Archives.Rar.RarArchiveVolumeFactory.<GetParts>d__1.MoveNext() at SharpCompress.LazyReadOnlyCollection1.LazyLoader.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetFileParts>d__0.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetMatchedFileParts>d__1.MoveNext() at SharpCompress.Archives.Rar.RarArchiveEntryFactory.<GetEntries>d__2.MoveNext() at SharpCompress.LazyReadOnlyCollection1.LazyLoader.MoveNext() at System.Linq.Enumerable.WhereEnumerableIterator`1.MoveNext() at SharpCompress.Archives.IArchiveExtensions.WriteToDirectory(IArchive archive, String destinationDirectory, ExtractionOptions options)

toolgood avatar Aug 20 '20 02:08 toolgood

Rar5 decryption isn't implemented

adamhathcock avatar Aug 21 '20 05:08 adamhathcock