-
Notifications
You must be signed in to change notification settings - Fork 50
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix panic on running out of space in wrapping buffer
Fixes rust-lang/flate2-rs#142, and possibly #13 as well.
- Loading branch information
Showing
2 changed files
with
24 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
[package] | ||
name = "miniz_oxide_c_api" | ||
authors = ["Frommi <[email protected]>"] | ||
version = "0.1.1" | ||
version = "0.1.2" | ||
build = "src/build.rs" | ||
license = "MIT" | ||
readme = "README.md" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
0bd8851
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It would be prudent to add a unit test for this, if possible. Ideally, a fuzzy/ property based test which uncovers the bug. It would be interesting to try https://github.com/AltSysrq/proptest for this: it’s like quick check, but allows for much more fine grained control over generation strategies.
0bd8851
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I agree, just need some example data.