diff --git a/core/clear_vars.mk b/core/clear_vars.mk index e2acf96a9..f87f6b488 100644 --- a/core/clear_vars.mk +++ b/core/clear_vars.mk @@ -259,6 +259,7 @@ LOCAL_SANITIZE_DIAG:= LOCAL_SANITIZE_RECOVER:= LOCAL_SANITIZE_NO_RECOVER:= LOCAL_SANITIZE_BLACKLIST := +LOCAL_SANITIZE_BLOCKLIST := LOCAL_SDK_LIBRARIES := LOCAL_SDK_RES_VERSION:= LOCAL_SDK_VERSION:= diff --git a/core/config_sanitizers.mk b/core/config_sanitizers.mk index c5cb91c10..323bb36d9 100644 --- a/core/config_sanitizers.mk +++ b/core/config_sanitizers.mk @@ -147,6 +147,9 @@ ifneq ($(my_sanitize)$(my_global_sanitize),) ifneq ($(LOCAL_SANITIZE_BLACKLIST),) my_cflags += -fsanitize-blacklist=$(LOCAL_PATH)/$(LOCAL_SANITIZE_BLACKLIST) endif + ifneq ($(LOCAL_SANITIZE_BLOCKLIST),) + my_cflags += -fsanitize-blacklist=$(LOCAL_PATH)/$(LOCAL_SANITIZE_BLOCKLIST) + endif endif # Disable integer_overflow if LOCAL_NOSANITIZE=integer.