-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add libfuzzer compatible fuzz harness
As discussed in #4088 the fuzz_simplify harness is an easy candidate to begin support for coverage driven feedback that is required for high performance fuzz testing.
- Loading branch information
1 parent
56490e0
commit 1049fc5
Showing
4 changed files
with
85 additions
and
67 deletions.
There are no files selected for viewing
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 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 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
tests(GROUPS fuzz | ||
SOURCES | ||
simplify.cpp | ||
) | ||
|
||
|
||
# Allow OSS-fuzz to manage flags directly | ||
if (DEFINED ENV{LIB_FUZZING_ENGINE}) | ||
target_link_options(fuzz_simplify PRIVATE ENV(LIB_FUZZING_ENGINE)) | ||
else () | ||
# By default just build with address sanitizers/libfuzzer for local testing | ||
target_compile_options(fuzz_simplify PRIVATE -fsanitize=fuzzer,address) | ||
target_link_options(fuzz_simplify PRIVATE -fsanitize=fuzzer,address) | ||
endif () | ||
|
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