mirror of
https://github.com/ArthurSonzogni/Diagon.git
synced 2026-08-29 16:40:45 +08:00
01ac8690d5
"Self" message are not supported, but this was not checked. This triggered the error "Something is wrong", and then caused a buffer overflow. Bug:https://github.com/ArthurSonzogni/Diagon/issues/65
9 lines
287 B
CMake
9 lines
287 B
CMake
set(CMAKE_C_COMPILER clang)
|
|
set(CMAKE_CXX_COMPILER clang++)
|
|
|
|
add_executable(fuzzer src/fuzzer.cpp)
|
|
target_compile_options(fuzzer PRIVATE -fsanitize=fuzzer)
|
|
target_link_libraries(fuzzer PRIVATE -fsanitize=fuzzer)
|
|
target_link_libraries(fuzzer PRIVATE diagon_lib)
|
|
target_set_common(fuzzer)
|