-
-
Notifications
You must be signed in to change notification settings - Fork 278
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
Fuzzing with honggfuzz-rs #263
Closed
Closed
Conversation
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
This is very cool, thanks for sharing! |
robertswiecki
referenced
this pull request
in rust-fuzz/trophy-case
Apr 21, 2018
PaulGrandperrin
added a commit
to PaulGrandperrin/trophy-case
that referenced
this pull request
Apr 21, 2018
Found by Geoffry Song @goffrie hyperium/h2#263
I tried running this and get:
|
I think that I might be on an old rustc. |
Ok, I managed to get an error. I'm going to see if I can figure out how to convert to a test. |
Thanks! I pulled this in in #274. I cleaned up the organization a bit, but the fuzz test is the same. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This uses honggfuzz-rs to generate a "script" that is used to mock out IO. It's pretty simple, but I've found it able to detect all the issues in #260, #261, and #262 (the latter two being issues that we actually hit in production).
Run with
HFUZZ_RUN_ARGS="-t 1" cargo hfuzz run h2-fuzz
(short timeout because it seems to run into infinite loops pretty often - probably something to do with hitting EOF and I'm not sure if it's a problem with the I/O mock or h2.)This doesn't have to be merged as-is, just wanted to share the code.