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

Behavior mismatches between liblzma and lzma-rs #35

Open
Shnatsel opened this issue Apr 16, 2020 · 1 comment
Open

Behavior mismatches between liblzma and lzma-rs #35

Shnatsel opened this issue Apr 16, 2020 · 1 comment

Comments

@Shnatsel
Copy link
Contributor

The attached files behave differently when decompressed with lzma-rs and with xz2 crate backed by lzma-sys: lzmars_xz2_mismatches.tar.gz

These files are generated by a fuzzer and do not have valid checksums in them. Checksum verification needs to be disabled in both implementations to reproduce the issue.

Found via #34

@Shnatsel
Copy link
Contributor Author

Shnatsel commented Apr 17, 2020

More specifically, this xz file decodes fine via the reference implementation but fails to decode with lzma-rs:
reference_succeeded_lzmars_failed.xz.gz (gzipped so that github would accept the upload)

I've built a quick'n'dirty fuzz harness for the lzma level, bypassing xz, and it seems there are mismatches there as well.

However, a superficial test on xz files did not find any cases when both decoders succeed, but produce different outputs.

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