From cf2189b06469e839314633f8486b64208a756eb5 Mon Sep 17 00:00:00 2001 From: gaoqiang_strong Date: Tue, 3 Jun 2025 16:31:15 +0800 Subject: [PATCH] =?UTF-8?q?=E9=85=8D=E7=BD=AE=E5=89=8D=E5=90=8E=E5=90=91CF?= =?UTF-8?q?I?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: gaoqiang_strong --- interfaces/inner_kits/native_cpp/BUILD.gn | 3 +++ radar/BUILD.gn | 4 ++-- services/softbuscache/BUILD.gn | 1 + 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/interfaces/inner_kits/native_cpp/BUILD.gn b/interfaces/inner_kits/native_cpp/BUILD.gn index 2068a5585..34f648786 100644 --- a/interfaces/inner_kits/native_cpp/BUILD.gn +++ b/interfaces/inner_kits/native_cpp/BUILD.gn @@ -156,6 +156,9 @@ if (defined(ohos_lite)) { boundary_sanitize = true integer_overflow = true ubsan = true + cfi = true + cfi_cross_dso = true + debug = false } cflags = [ diff --git a/radar/BUILD.gn b/radar/BUILD.gn index 1a5793e7a..49dc533a0 100644 --- a/radar/BUILD.gn +++ b/radar/BUILD.gn @@ -68,7 +68,7 @@ if (defined(ohos_lite)) { "${innerkits_path}/native_cpp/include", "${json_path}/include", ] - + branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true @@ -125,7 +125,7 @@ if (defined(ohos_lite)) { "${innerkits_path}/native_cpp/include", "${json_path}/include", ] - + branch_protector_ret = "pac_ret" sanitize = { cfi = true cfi_cross_dso = true diff --git a/services/softbuscache/BUILD.gn b/services/softbuscache/BUILD.gn index 49a243c36..304974efe 100644 --- a/services/softbuscache/BUILD.gn +++ b/services/softbuscache/BUILD.gn @@ -50,6 +50,7 @@ if (defined(ohos_lite)) { } } else { ohos_shared_library("dmdevicecache") { + branch_protector_ret = "pac_ret" sanitize = { boundary_sanitize = true cfi = true -- Gitee