Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extraction fails with Unknown filter id 8 #98

Open
ajeetdsouza opened this issue Apr 8, 2023 · 2 comments
Open

Extraction fails with Unknown filter id 8 #98

ajeetdsouza opened this issue Apr 8, 2023 · 2 comments

Comments

@ajeetdsouza
Copy link

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

@ajeetdsouza
Copy link
Author

I experienced a similar error with the xz2 crate, perhaps the issue is related? It works fine with rust-lzma.

@gendx
Copy link
Owner

gendx commented Jun 12, 2023

For now, custom XZ filters are not implemented, but I see that #101 is proposing an implementation for the delta filter. Feel free to send a PR to add an implementation of this filter.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants