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

failed to compress and decompress empty bytes #14

Closed
NOBLES5E opened this issue Oct 22, 2020 · 0 comments
Closed

failed to compress and decompress empty bytes #14

NOBLES5E opened this issue Oct 22, 2020 · 0 comments

Comments

@NOBLES5E
Copy link

The following code fails, which is not desired behavior

use lz4::block::{compress,decompress};
let v = vec![0u8; 0];
let comp_with_prefix = compress(&v, None, true).unwrap();
assert_eq!(v, decompress(&comp_with_prefix, None).unwrap());

(originally posted the issue here: bozaro#55)

@pmarks pmarks closed this as completed in 3138ba7 Mar 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant