From 9e714ff3942410f4cf006052f04d256c60aaa46d Mon Sep 17 00:00:00 2001 From: Ryan Neph Date: Thu, 1 Jul 2021 14:09:31 -0700 Subject: [PATCH] tests/fuzzer: fix eglInitialize() leak suppression __lsan_default_suppressions is only defined if -fsanitize=address, but leak suppression is still needed when the LeakSanitizer is used without the AddressSanitizer (-fsanitize=fuzzer for example, since LeakSanitizer is enabled by default on linux). Signed-off-by: Ryan Neph Reviewed-by: Chia-I Wu Reviewed-by: David Riley davidriley@chromium.org --- tests/fuzzer/virgl_fuzzer.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/fuzzer/virgl_fuzzer.c b/tests/fuzzer/virgl_fuzzer.c index d248f47..a368f1e 100644 --- a/tests/fuzzer/virgl_fuzzer.c +++ b/tests/fuzzer/virgl_fuzzer.c @@ -44,18 +44,10 @@ int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size); // eglInitialize leaks unless eglTeriminate is called (which only happens // with CLEANUP_EACH_INPUT), so suppress leak detection on everything // allocated by it. - -#if !defined(__has_feature) -#define __has_feature(x) 0 -#endif - -#if __has_feature(address_sanitizer) const char* __lsan_default_suppressions(void); - const char* __lsan_default_suppressions() { return "leak:eglInitialize\n"; } -#endif // __has_feature(address_sanitizer) #endif // !CLEANUP_EACH_INPUT