Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

deflate_medium doesn't always produce output that can be inflated. #24

Open
arskama opened this issue Aug 16, 2019 · 1 comment
Open

Comments

@arskama
Copy link

arskama commented Aug 16, 2019

No description provided.

@arskama
Copy link
Author

arskama commented Aug 16, 2019

I have this case happening when trying a basic deflate inflate with deflate medium, the output seems corrupted.

Please find the tarball with the issue.
I have found something that can solve the issue, though I m not sure about the validity.
My potential fix, has been tested in zlib for Chromium and helps in other cases too, such as high entropy files deflate with low window bits.

in the tarball:

  1. the test
  2. the test file
  3. the suggested fix.
    patches.tar.gz

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

No branches or pull requests

1 participant