Add ASAN sanitizer to the fuzzer

This commit is contained in:
Serge Lamikhov-Center 2022-06-21 16:39:35 +03:00
parent 1b4dc7be42
commit 91017d3edb

View File

@ -65,11 +65,11 @@ if(CMAKE_CXX_COMPILER_ID STREQUAL "Clang")
elfio::elfio)
target_compile_options(elfio_fuzzer
PRIVATE $<$<C_COMPILER_ID:Clang>:-g -O1 -fsanitize=fuzzer>
PRIVATE $<$<C_COMPILER_ID:Clang>:-g -O1 -fsanitize=fuzzer,address>
)
target_link_libraries(elfio_fuzzer
PRIVATE $<$<C_COMPILER_ID:Clang>:-fsanitize=fuzzer>
PRIVATE $<$<C_COMPILER_ID:Clang>:-fsanitize=fuzzer,address>
)
endif()