diff --git a/cc/sanitize.go b/cc/sanitize.go index 5dcaf76c9..8262a6810 100644 --- a/cc/sanitize.go +++ b/cc/sanitize.go @@ -50,7 +50,8 @@ var ( hwasanStaticLibsMutex sync.Mutex intOverflowCflags = []string{"-fsanitize-blacklist=build/soong/cc/config/integer_overflow_blacklist.txt"} - minimalRuntimeFlags = []string{"-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer", "-fno-sanitize-recover=integer"} + minimalRuntimeFlags = []string{"-fsanitize-minimal-runtime", "-fno-sanitize-trap=integer,undefined", + "-fno-sanitize-recover=integer,undefined"} ) type sanitizerType int