Skip to content

Commit

Permalink
ci: Re-enable asan and ubsan for fuzz tests (#4840)
Browse files Browse the repository at this point in the history
  • Loading branch information
jouho authored Oct 15, 2024
1 parent eec5713 commit 254199a
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,9 @@ if(NO_STACK_PROTECTOR)
endif()

if(S2N_FUZZ_TEST)
target_compile_options(${PROJECT_NAME} PUBLIC -fsanitize=fuzzer-no-link,leak)
target_link_libraries(${PROJECT_NAME} PUBLIC -fsanitize=fuzzer-no-link,leak)
target_compile_definitions(${PROJECT_NAME} PUBLIC S2N_FUZZ_TESTING=1)
target_compile_options(${PROJECT_NAME} PUBLIC -fsanitize=fuzzer-no-link,leak,address,undefined)
target_link_libraries(${PROJECT_NAME} PUBLIC -fsanitize=fuzzer-no-link,leak,address,undefined)
endif()

if(TSAN)
Expand Down

0 comments on commit 254199a

Please sign in to comment.