From ab9cc62858fe9225e9323608f6c2ebc593a99c09 Mon Sep 17 00:00:00 2001 From: Mike Hommey Date: Thu, 6 Jul 2023 09:34:02 +0000 Subject: [PATCH] Bug 1841935 - Disable -fsanitize=function for C files. r=decoder Clang has recently added support for function UB sanitizing for C, but it catches cases in e.g. NSS and SQLite that are IMHO a gray area rather than a clear case of UB (https://reviews.llvm.org/D148827#4422709). Differential Revision: https://phabricator.services.mozilla.com/D182859 --- build/sanitizers/ubsan_function_blacklist.txt | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 build/sanitizers/ubsan_function_blacklist.txt diff --git a/build/sanitizers/ubsan_function_blacklist.txt b/build/sanitizers/ubsan_function_blacklist.txt new file mode 100644 index 000000000000..42dadcd179e5 --- /dev/null +++ b/build/sanitizers/ubsan_function_blacklist.txt @@ -0,0 +1,4 @@ +[function] +# Disable function sanitizer for all C files (new feature in clang 17) until we +# we can narrow this down. See bug 1841935. +src:*.c