weltkante / managed-lzma

C# implementation of LZMA and 7zip
MIT License
140 stars 22 forks source link

Decoding Exception #24

Open Zetanova opened 6 years ago

Zetanova commented 6 years ago

An archive was created with 7-zip.exe 9.20 and 18.01 with pw and multiple files.

A NotSupportedException is thrown on the first file stream: at ManagedLzma.SevenZip.Reader.BcjArchiveDecoder.DecodeInto(Byte[] buffer, Int32 offset, Int32 count) at ManagedLzma.SevenZip.Reader.BcjArchiveDecoder.Read(Byte[] buffer, Int32 offset, Int32 count) at ManagedLzma.SevenZip.Reader.DecodedStream.Read(Byte[] buffer, Int32 offset, Int32 count) at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)

Zetanova commented 6 years ago

without a password and a single file (700kb) it is landing in a live lock where 1core is at 100%

Zetanova commented 6 years ago

LZMA and LZMA2 makes the same problems. I reseted the 7-zip to the default compression settings.

Using .net4.6.2

weltkante commented 6 years ago

I'll take a look at the weekend and see if I can reproduce this behavior.

weltkante commented 6 years ago

I was able to reproduce both issues using 7zip 18.01 but it needs further investigation to determine what causes them. Maybe the updated 7zip/lzma codebase changed something and now triggers unexpected codepaths. I'll have a look at what code has changed in the recent releases.