gendx/lzma-rs

Extraction fails with `Unknown filter id 8`

Open

#98 opened on Apr 8, 2023

 (2 comments) (0 reactions) (0 assignees)Rust (37 forks)auto 404
enhancementhelp wanted

Repository metrics

Stars
 (151 stars)
PR merge metrics
 (PR metrics pending)

Description

Test code

fn main() {
    let file = std::fs::File::open("/tmp/dump.xz").unwrap();
    lzma_rs::xz_decompress(&mut std::io::BufReader::new(file), &mut std::io::sink()).unwrap();
}

Output of above program

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: XzError("Unknown filter id 8")', src/main.rs:5:86
stack backtrace:
note: Some details are omitted, run with `RUST_BACKTRACE=full` for a verbose backtrace.

Output of xz -l dump.xz

Strms  Blocks   Compressed Uncompressed  Ratio  Check   Filename
    1       1    683.7 KiB  2,048.0 KiB  0.334  None    dum

Link to file (please extract the dump.zip to get xz file): dump.zip

Contributor guide