From ca7192d984bfe92d295e3bb695d48b4b300e5673 Mon Sep 17 00:00:00 2001 From: Marc Jeanmougin Date: Sat, 28 Oct 2017 18:56:01 +0200 Subject: add some doc --- testfiles/CMakeLists.txt | 5 +++++ testfiles/fuzzer.dict | 4 ++++ 2 files changed, 9 insertions(+) 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" -- cgit v1.2.3