From 371a1dd4c0495bd7b14dbe3ca2f2148b8400e5e5 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Fri, 13 May 2022 00:45:53 +0000 Subject: [PATCH] Bug 1768099 - Workaround ASan failures with clang-trunk. r=decoder Differential Revision: https://phabricator.services.mozilla.com/D146154 --- mozglue/build/AsanOptions.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/mozglue/build/AsanOptions.cpp b/mozglue/build/AsanOptions.cpp index c15b8f7d0913..a3f3ee0c54df 100644 --- a/mozglue/build/AsanOptions.cpp +++ b/mozglue/build/AsanOptions.cpp @@ -57,6 +57,8 @@ // fast_unwind_on_fatal - Use the fast (frame-pointer-based) stack unwinder // to print fatal error reports. The slow unwinder doesn't work on Android. // +// detect_stack_use_after_return=0 - Work around bug 1768099. +// // intercept_tls_get_addr=0 - Work around // https://github.com/google/sanitizers/issues/1322 (bug 1635327). // @@ -76,6 +78,7 @@ extern "C" MOZ_ASAN_BLACKLIST const char* __asan_default_options() { ":malloc_fill_byte=228:free_fill_byte=229" ":handle_sigill=1" ":allocator_may_return_null=1" + ":detect_stack_use_after_return=0" ":intercept_tls_get_addr=0"; }