From 4fd8eb214b93d9d60a5753d2db9cbbba4a9ec937 Mon Sep 17 00:00:00 2001 From: Google AutoFuzz Team Date: Mon, 2 Dec 2019 17:13:28 -0500 Subject: [PATCH] Remove a static_assert (#5643) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Having a static_assert on MSAN and ASAN prevents the fuzzers from being used with different engines, like TSAN, UBSAN, … but also with fuzzers that aren't using MSAN/ASAN like afl for example. --- tests/fuzzer/test_init.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/tests/fuzzer/test_init.h b/tests/fuzzer/test_init.h index 3d8d07c89..6c9113d99 100644 --- a/tests/fuzzer/test_init.h +++ b/tests/fuzzer/test_init.h @@ -5,10 +5,6 @@ #include "fuzzer_assert.h" #include "test_assert.h" -static_assert(__has_feature(memory_sanitizer) || - __has_feature(address_sanitizer), - "sanitizer disabled"); - // Utility for test run. struct OneTimeTestInit { // Declare trap for the Flatbuffers test engine. @@ -53,4 +49,4 @@ struct OneTimeTestInit { static OneTimeTestInit one_time_init_; }; -#endif // !FUZZER_TEST_INIT_H_ \ No newline at end of file +#endif // !FUZZER_TEST_INIT_H_