gendx / lzma-rs

An LZMA decoder written in pure Rust
MIT License
127 stars 27 forks source link

Incapable of decompressing LZMA or LZMA2 created from default 7Zip settings #113

Open disassembledd opened 1 month ago

disassembledd commented 1 month ago

As the title implies. This is repeatable by creating any file, zipping it with 7Zip defaults with LZMA or LZMA2, and testing lzma_decompress or lzma2_decompress. The former results in a "distance X is beyond output size Y" error, the latter results in a "invalid status 55" error.

dscso commented 1 month ago

Similar problem here: I have tried to compress a file using the lzma -9 -z <file> command, unfortunately the library seems to be unable to decode the lzma file.

LzmaError("LZMA2 invalid status 93, must be 0, 1, 2 or >= 128")

Edit: I also tried with xz -9 <file> it also didn't work