Files
Diagon/cmake/diagon_fuzzer.cmake
T
ArthurSonzogni 01ac8690d5 Fix CVE-2023-27390
"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
2023-05-08 17:18:24 +02:00

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)