-
Notifications
You must be signed in to change notification settings - Fork 2
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
Index out of bounds at huffman_tree.rs line 252 when reading invalid data #23
Comments
Could you show us example file that cuses this problem? |
Still working on obtaining an example. At the time I filed this report, my CI workflow had two bugs, one that prevented it from uploading the failed test cases due to the workflow-level timeout and another that prevented me from relaunching it manually. Now that both bugs are fixed, I'll be repeating the CI run until the error recurs. |
Here's the input to
|
In
Here are some of the other local variables:
|
To reproduce this issue the exact same way I originally encountered it, run the unit test added in this commit: zip-rs/zip2@aff3f8d. |
I tried to unzip the zip file with info-zip, windows 11, and 7zip and all of them fails to load zip file.
|
Right -- these are intentionally invalid inputs, because the fuzz test is designed to ensure that attempting to unzip one returns an error result rather than panicking. |
Here's a version with a valid CDR. |
Oh, sorry I missed "when reading invalid data" in the title. |
Fix #23: return error rather than panic if index is out of bounds
When trying to decompress an invalid file, I get the following panic. I'll post the reproducing steps ASAP.
The text was updated successfully, but these errors were encountered: