From 01d88fbcde87f7058da476fc062ebf793ac5098a Mon Sep 17 00:00:00 2001 From: zhushengle Date: Mon, 30 Dec 2024 14:57:04 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20CFI=E9=BB=98=E8=AE=A4=E5=8F=AA=E4=BD=BF?= =?UTF-8?q?=E8=83=BDvcall?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhushengle Change-Id: Icf71c8d8884a22ee4084adf3364a1ffc65e054fd --- build/config/sanitizers/sanitizers.gni | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/build/config/sanitizers/sanitizers.gni b/build/config/sanitizers/sanitizers.gni index 521152115b..93946e61a8 100644 --- a/build/config/sanitizers/sanitizers.gni +++ b/build/config/sanitizers/sanitizers.gni @@ -61,9 +61,7 @@ declare_args() { # Enable checks for indirect function calls via a function pointer. # TODO(pcc): remove this when we're ready to add these checks by default. # https://crbug.com/701919 - use_cfi_icall = - ((target_os == "linux" && target_cpu == "x64") && (is_ohos && use_cfi)) && - is_official_build + use_cfi_icall = false # Print detailed diagnostics when Control Flow Integrity detects a violation. use_cfi_diag = false @@ -121,7 +119,7 @@ declare_args() { # Enable checks for bad casts: derived cast and unrelated cast. # TODO(krasin): remove this, when we're ready to add these checks by default. # https://crbug.com/626794 - use_cfi_cast = is_cfi && (is_chromeos || (is_ohos && use_cfi)) + use_cfi_cast = false # Compile for Undefined Behaviour Sanitizer's vptr checks. is_ubsan_vptr = is_ubsan_security -- Gitee