diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-10-28 16:56:01 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marc@jeanmougin.fr> | 2017-10-28 16:56:01 +0000 |
| commit | ca7192d984bfe92d295e3bb695d48b4b300e5673 (patch) | |
| tree | c2ec6241ae501b13a25d0596a6b9dd753f08cfdf | |
| parent | Merge branch 'master' of gitlab.com:marcjeanmougin/inkscape (diff) | |
| download | inkscape-ca7192d984bfe92d295e3bb695d48b4b300e5673.tar.gz inkscape-ca7192d984bfe92d295e3bb695d48b4b300e5673.zip | |
add some doc
| -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" |
