mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-02-07 14:33:15 +00:00
29c6bd6e4f
Summary: This adds a simple DFSan-based (i.e. taint-guided) fuzzer mutator, see the comments for details. Test Plan: a test added Reviewers: samsonov, pcc Reviewed By: samsonov, pcc Subscribers: llvm-commits Differential Revision: http://reviews.llvm.org/D8669 git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@233613 91177308-0d34-0410-b5e6-96231b3b80d8
18 lines
613 B
CMake
18 lines
613 B
CMake
# These tests depend on both coverage and dfsan instrumentation.
|
|
|
|
set(DFSAN_FUZZER_ABI_LIST "${CMAKE_CURRENT_SOURCE_DIR}/../../dfsan_fuzzer_abi.list")
|
|
|
|
set(CMAKE_CXX_FLAGS_RELEASE
|
|
"${LIBFUZZER_FLAGS_BASE} -O0 -fno-sanitize=all -fsanitize=dataflow -mllvm -sanitizer-coverage-experimental-trace-compares=1 -fsanitize-blacklist=${DFSAN_FUZZER_ABI_LIST}")
|
|
|
|
foreach(Test ${DFSanTests})
|
|
set_source_files_properties(${Test}.cpp PROPERTIES OBJECT_DEPENDS ${DFSAN_FUZZER_ABI_LIST})
|
|
add_executable(LLVMFuzzer-${Test}
|
|
${Test}.cpp
|
|
)
|
|
target_link_libraries(LLVMFuzzer-${Test}
|
|
LLVMFuzzer
|
|
)
|
|
endforeach()
|
|
|