From 10317049c5022f445129adf6cb6d07f0843de64b Mon Sep 17 00:00:00 2001 From: Vivien Nicolas <vnicolas@apple.com> Date: Tue, 18 May 2021 02:37:56 +0200 Subject: [PATCH] Add -fno-sanitize=vptr,function when ubsan is activated (#6880) --- build/config/compiler/BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/build/config/compiler/BUILD.gn b/build/config/compiler/BUILD.gn index f8c602dfe04fa1..65124d3194833c 100644 --- a/build/config/compiler/BUILD.gn +++ b/build/config/compiler/BUILD.gn @@ -287,6 +287,7 @@ config("sanitize_undefined_behavior") { "-fsanitize=unsigned-integer-overflow", "-fsanitize=implicit-conversion", "-fsanitize=nullability", + "-fno-sanitize=vptr,function", ] ldflags = cflags }