8000 `InvalidInput` on extracting a xz file · Issue #112 · alexcrichton/xz2-rs · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
InvalidInput on extracting a xz file #112
Open
Portable-Network-Archive/liblzma-rs
#5
@crazystylus

Description

@crazystylus

Test code

fn main() {
    let test_xz = File::open("dump.xz").unwrap();
    let mut output = Vec::new();
    xz2::read::XzDecoder::new(&test_xz).read_to_end(&mut output).unwrap();
}

Output of above program

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: Custom { kind: InvalidInput, error: Options }'

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    dump.xz

I am able to extract the xz file using unxz in linux but not with XzDecoder

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      0