We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 028f43b commit 54b0e73Copy full SHA for 54b0e73
1 file changed
tests/fuzz/wasm-mutator-fuzz/CMakeLists.txt
@@ -120,8 +120,11 @@ add_compile_options(-fsanitize=fuzzer)
120
add_link_options(-fsanitize=fuzzer)
121
122
# if not calling from oss-fuzz helper, enable all support sanitizers
123
-# oss-fuzz always defines `HELPER=True`
124
-if (NOT "$ENV{HELPER}" STREQUAL "True")
+# oss-fuzz will define FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION in CFLAGS and CXXFLAGS
+set(CFLAGS_ENV $ENV{CFLAGS})
125
+string(FIND "${CFLAGS_ENV}" "-DFUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION" IN_OSS_FUZZ)
126
+if (IN_OSS_FUZZ EQUAL -1)
127
+ message("[ceith]:Enable ASan and UBSan in non-oss-fuzz environment")
128
add_compile_options(
129
-fsanitize=signed-integer-overflow
130
-fprofile-instr-generate -fcoverage-mapping
0 commit comments