diff options
| -rw-r--r-- | testfiles/CMakeLists.txt | 5 | ||||
| -rw-r--r-- | testfiles/fuzzer.dict | 4 |
2 files changed, 9 insertions, 0 deletions
diff --git a/testfiles/CMakeLists.txt b/testfiles/CMakeLists.txt index 923898fc3..62b028729 100644 --- a/testfiles/CMakeLists.txt +++ b/testfiles/CMakeLists.txt @@ -32,7 +32,12 @@ foreach(source ${TEST_SOURCES}) endforeach() add_subdirectory(rendering_tests) + if(WITH_FUZZ) + # to use the fuzzer, make sure you use the right compiler (clang) + # with the right flags -fsanitize=address -fsanitize-coverage=edge,trace-pc-guard,indirect-calls,trace-cmp,trace-div,trace-gep -fno-omit-frame-pointer + # (see libfuzzer doc for info in flags) + # first line is for integration into oss-fuzz https://github.com/google/oss-fuzz add_executable(fuzz fuzzer.cpp) if(EXISTS ${LIB_FUZZING_ENGINE}) target_link_libraries(fuzz inkscape_base -lFuzzingEngine) diff --git a/testfiles/fuzzer.dict b/testfiles/fuzzer.dict index 7eee0d0a0..8fae9bd4e 100644 --- a/testfiles/fuzzer.dict +++ b/testfiles/fuzzer.dict @@ -1,3 +1,7 @@ +# Dictionary for the fuzzer to "guess" faster important words. +# Contains xml keywords and svg element names and attributes. +# It might be useful to remove some of them, maybe. + "100" "200" "300" |
