commit da2745971f432e6445740efc88bc5fdd3459aee6 from: Sergey Bronnikov via: Igor Munkin date: Mon Apr 03 15:14:41 2023 UTC test/fuzz: get rid of custom cflags We manage using sanitizers with CMake flags: ENABLE_ASAN and ENABLE_UB_SANITIZER. sql_fuzzer enables Address Sanitizer by passing -fsanitize=address directly to CFLAGS. It works fine on OSS Fuzz, but breaks building fuzzers for Sydr [1], because Sydr requires building with disabled sanitizers, see documentation [2]. 1. https://github.com/ispras/oss-sydr-fuzz/pull/164 2. https://sydr-fuzz.github.io/docs/#%D0%BE%D0%B1%D0%B5%D1%80%D1%82%D0%BA%D0%B0-sydr Fixes #8529 NO_CHANGELOG= NO_DOC= NO_TEST= commit - b6e31f96e62b63bb838949620f5809dfda89fbda commit + da2745971f432e6445740efc88bc5fdd3459aee6 blob - 076e47396851b62538d767aea881e041f585c5fa blob + d5832e3ce6b06111de123d66f049137956005705 --- test/fuzz/sql_fuzzer/CMakeLists.txt +++ test/fuzz/sql_fuzzer/CMakeLists.txt @@ -26,7 +26,4 @@ target_link_libraries(sql_fuzzer PUBLIC box ${LPM_LIBRARIES} fuzzer_config) -set_property(TARGET sql-query-proto PROPERTY - COMPILE_FLAGS "-fsanitize=fuzzer-no-link,address -fsanitize-coverage=trace-cmp -fprofile-instr-generate") - set(FUZZ_TEST_TARGETS "${FUZZ_TEST_TARGETS};sql_fuzzer" PARENT_SCOPE)