-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Add cpp-httplib to oss-fuzz #684
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
Conversation
* Add fuzz_test option to Makefile
|
@omjego, thanks for your fine work! Could you please rebase your pull request with the latest master, so that we can fix the conflicts with the master and the unit test errors on GitHub Actions. Then, I'll review the pull request. Thanks! |
|
@omjego, thanks for the adjustments. It seems like it is not practical to put the fuzz test in |
|
@yhirose Have added separate Makefile inside fuzzing folder, which will solely used by oss-fuzz. |
|
@omjego, no problem. I'll wait until I hear back from you. Thanks for your hard work. |
2. Clean fuzzing/Makefile
|
@yhirose Hey I've fixed the issues in oss-fuzz PR google/oss-fuzz#4508 (Please follow the discussion for details) |
|
@omjego, thank you for the further modification! I took a look at the current code, but I honestly don't have enough knowledge about it, and I think I can't maintain the code. So I would like to completely separate any oss-fuzz codes from the current Makefile, and put them into a different Makefile like This approach is same as Sorry that it will cause further change in the pull request. But I really appreciate your efforts and your understanding! |
|
Hey @yhirose thank you. Have made the suggested changes. |
|
@omjego, thanks for the changes.
Please go ahead to adding it to the GItHub Action flows, and make sure that it should be applied only to 'ubuntu-latest' in
I don't think we need to mention it on README, because most of users don't need to know the existence. Only when a user sends a pull request and the fuzz test on GitHub Action reports something wrong, they need to know what the message means. Whenever you feel that it's ready to be merged, please let me know. I'll do it right away. Thanks! |
|
@yhirose It's ready to be merged. |
|
@omjego, great! Thanks for your excellent work that I can't do! |
|
@omjego, I have now started receiving problem reports (26439 and 26453) from oss-fuzz. Since I am not familiar to it, could you figure out what the problems are, and make issues if necessary? |
|
@yhirose yes sure :) |
* *Add server fuzzer target and seed corpus * Add fuzz_test option to Makefile * Fix yhirose#685 * Try to fix Github actions on Ubuntu * Added ReadTimeoutSSL test * Comment out `-fsanitize=address` * Rebase upstream changes * remove address sanitizer temporarily * Add separate Makefile for fuzzing * 1. Remove special char from dictionary 2. Clean fuzzing/Makefile * Use specific path to avoid accidently linking openssl version brought in by oss-fuzz * remove addition of flags * Refactor Makefile * Add missing newline * Add fuzztest to github workflow * Fix Co-authored-by: yhirose <yuji.hirose.bug@gmail.com>
Fixes #664
This PR has changes for integrating cpp-httplib with oss-fuzz.
PR in oss-fuzz: google/oss-fuzz#4508 (Will be merged post this with some minor changes in Dockerfile)
Have made following changes after referring to this guide:
server_fuzzer) in Makefile for easier integration with oss-fuzzUsage:
or run
TODO:
While generating fuzz target binaries OSS-Fuzz requires you to link all your dependencies statically , I was able to do that with openssl but faced some issues with brotli. zlib was available for dynamic linking. Right now only openssl and zlib support is added for fuzz testing.