Skip to content

google/oss-fuzz integration #1182

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

Merged
merged 6 commits into from
Jan 31, 2017
Merged

google/oss-fuzz integration #1182

merged 6 commits into from
Jan 31, 2017

Conversation

jfoote
Copy link
Contributor

@jfoote jfoote commented Jan 30, 2017

Hello,

This PR enables the h2o fuzzer to run in the google/oss-fuzz (continuous testing) environment. Here is a summary of the changes:

  • Add OSS_FUZZ cmake flag to support interoperability with oss-fuzz's LibFuzzingEngine
  • Add fuzzer http dictionary (improves fuzzing efficiency)
  • Add chunking-related fuzzer seed files (improves fuzzing efficiency)

Note that as of this writing a bug exists in the fuzzing driver that causes inputs that trigger reproxying to make abberrant network requests. That bug fix will be handled in a separate PR.

Once these two PRs are vetted/merged I can remove the workarounds from the oss-fuzz/h2o integration staging branch, work out any final kinks and submit a PR to google.

Jon

@@ -567,4 +579,7 @@ ELSE ()
SET(CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -pthread")
ENDIF ()

SET(CMAKE_CXX_FLAGS "${CMAKE_C_FLAGS}")
# Retain CXX_FLAGS for std c++ compatiability across fuzz build/test environments

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

*compatibility

(thanks for the great PR; this is all feedback I could find)

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Oops -- fixed this typo.

Thanks for the positive feedback!

@kazuho kazuho merged commit bae4441 into h2o:master Jan 31, 2017
@kazuho
Copy link
Member

kazuho commented Jan 31, 2017

Thank you for the great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants