Skip to content
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

Move fuzzing harness to a new directory and refactor fuzzing constants (#5909) #5910

Merged
merged 1 commit into from
Oct 20, 2019

Conversation

tomrittervg
Copy link
Contributor

@tomrittervg tomrittervg commented Oct 20, 2019

For issue #5909

My first foray into cmake so let me know what needs to be changed...

I didn't add Undefined Behavior or Thread sanitizer constants because adding those sanitizers would bloat this commit - these sanitizers will require testing before they can be enabled. (Especially TSAN, which I think has heavy dependency requirements...)

osquery#5909)

This commit creates a new osquery/main/harnesses directory and moves fuzz-config there.

It removes OSQUERY_FUZZ for a new option OSQUERY_ENABLE_FUZZER_SANITIZERS
It creates a new option OSQUERY_ENABLE_ADDRESS_SANITIZER

The following behaviors are intended:

BUILD_TESTS=true will build the fuzzing harness
   This configuration is not intended for fuzzing purposes, just to keep the fuzzing harness compiling
ENABLE_FUZZER_SANITIZERS=true will also build the fuzzing harness
   However if this variable is true, it also requires:
   ENABLE_ADDRESS_SANITIZER=true
   CMAKE_BUILD_TYPE=Release or RelWithDebInfo
   This configuration is actually intended for fuzzing
@linux-foundation-easycla
Copy link

CLA Check
One or more committers are not authorized under a signed CLA as indicated below. Please click here to be authorized.

Copy link
Member

@theopolis theopolis left a comment

Choose a reason for hiding this comment

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

This looks OK.

I am performing some builds locally with only OSQUERY_ENABLE_ADDRESS_SANITIZER enabled, and then again alongside OSQUERY_BUILD_TESTS.

@theopolis
Copy link
Member

This will break the oss-fuzz build script temporarily.

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

Successfully merging this pull request may close these issues.

None yet

2 participants