-
Notifications
You must be signed in to change notification settings - Fork 848
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
Fuzzer #1174
Merged
Merged
Fuzzer #1174
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 activated when H2O is build with `cmake -DBUILD_FUZZER=ON`, it also needs `clang` as compiler.
Those were generated with the unit tests and `fuzz/gather-data.patch` set.
that we don't get in the way of the backtracer.
Instead of spawning a thread for each client request, instantiate one at the start of the fuzzer, then feed the client via `job_queue`.
- Add a 10s timeout for proxy IO - Have epoll timeout every 10ms to inspect the fd sooner
a fixed version (29d1659edabe4ba2396f9697915bb7a0880cbd2f) for now
Awesome pull request! I have a FreeBSD box that sits around mostly Idle for continuous integration. Il try and get this running on that later this weekend, might as well use those cores for something useful. |
@hbowden thanks! Please note that I haven't tested a wide variety of compilers. We've been using clang-3.9. |
Thank you for the great PR! |
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 PR adds two fuzzers (one that accepts HTTP/1, another that accepts HTTP/2), using http://llvm.org/docs/LibFuzzer.html. They use a seed corpus (found under
fuzz/http{1,2}-corpus
) that was collected by running the unit tests.The fuzzer consists of a client thread that accepts input from libFuzzer and uses it to communicate with h2o.
We use the
BUILD_FUZZER
cmake directive in order to compile it (it's off by default).fuzz/README.md
file contains the detailed instructions for compiling and running the fuzzer.The intent is to submit this for use with https://github.com/google/oss-fuzz