mirror of
https://github.com/serge1/ELFIO.git
synced 2024-12-26 18:15:40 +00:00
Add ASAN sanitizer to the fuzzer
This commit is contained in:
parent
1b4dc7be42
commit
91017d3edb
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user