From 3e8dbe0e057d1521d04fe2aaeb53aefd4ed34a64 Mon Sep 17 00:00:00 2001 From: liuxiaowei Date: Tue, 19 Mar 2024 16:10:05 +0800 Subject: [PATCH] =?UTF-8?q?user=5Ffile=5Fservice=E7=9A=84unittest=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0cfi=E5=89=8D=E5=90=91=E4=B8=8E=E5=90=8E=E5=90=91?= =?UTF-8?q?=E5=AE=89=E5=85=A8=E9=80=82=E9=85=8D=E3=80=81=E6=95=B4=E5=BD=A2?= =?UTF-8?q?=E6=BA=A2=E5=87=BA=E6=A0=A1=E9=AA=8C=E3=80=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: liuxiaowei --- test/unittest/BUILD.gn | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 3c33ab93..8822812a 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -17,6 +17,7 @@ import("//foundation/filemanagement/user_file_service/filemanagement_aafwk.gni") ohos_unittest("medialibrary_file_access_test") { branch_protector_ret = "pac_ret" sanitize = { + integer_overflow = true cfi = true cfi_cross_dso = true debug = false @@ -65,6 +66,7 @@ ohos_unittest("medialibrary_file_access_test") { ohos_unittest("external_file_access_test") { branch_protector_ret = "pac_ret" sanitize = { + integer_overflow = true cfi = true cfi_cross_dso = true debug = false @@ -116,6 +118,7 @@ ohos_unittest("external_file_access_test") { ohos_unittest("abnormal_file_access_test") { branch_protector_ret = "pac_ret" sanitize = { + integer_overflow = true cfi = true cfi_cross_dso = true debug = false @@ -159,6 +162,13 @@ ohos_unittest("abnormal_file_access_test") { } ohos_unittest("file_access_ext_stub_impl_test") { + branch_protector_ret = "pac_ret" + sanitize = { + integer_overflow = true + cfi = true + cfi_cross_dso = true + debug = false + } module_out_path = "user_file_service/tests" include_dirs = [ @@ -240,6 +250,13 @@ ohos_unittest("file_access_service_proxy_test") { } ohos_unittest("js_file_access_ext_ability_test") { + branch_protector_ret = "pac_ret" + sanitize = { + integer_overflow = true + cfi = true + cfi_cross_dso = true + debug = false + } module_out_path = "user_file_service/tests" include_dirs = [ -- Gitee