diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 3c33ab9312fa71f43e35cfeb429eab1d56c6c3f2..5afb1264f88268fc9522a94124fdaace980c36bc 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 = [ @@ -196,6 +206,13 @@ ohos_unittest("file_access_ext_stub_impl_test") { } ohos_unittest("file_access_service_proxy_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 +257,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 = [