diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 3c33ab9312fa71f43e35cfeb429eab1d56c6c3f2..8822812ac288b280643bc6c21c4276437ca2cda1 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 = [