File tree Expand file tree Collapse file tree 1 file changed +5
-2
lines changed
tests/fuzz/wasm-mutator-fuzz Expand file tree Collapse file tree 1 file changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -120,8 +120,11 @@ add_compile_options(-fsanitize=fuzzer)
120120add_link_options (-fsanitize=fuzzer)
121121
122122# 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" )
123+ # oss-fuzz will define FUZZING_BUILD_MODE_UNSAFE_FOR_PRODUCTION in CFLAGS and CXXFLAGS
124+ 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" )
125128 add_compile_options (
126129 -fsanitize=signed-integer-overflow
127130 -fprofile-instr-generate -fcoverage-mapping
You can’t perform that action at this time.
0 commit comments