From 3727370eef61f5df42c96bafa6525931c930bb4d Mon Sep 17 00:00:00 2001 From: Vivien Nicolas 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 }