CFI功能代码适配1

Signed-off-by: liuxiaowei <liuxiaowei45@huawei.com>
This commit is contained in:
liuxiaowei 2024-04-01 17:22:29 +08:00
parent 221e575485
commit f2f4280edd
3 changed files with 4 additions and 4 deletions

View File

@ -28,7 +28,7 @@ config("private_config") {
}
ohos_shared_library("storage_manager_acl") {
stack_protector_ret = true
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true

View File

@ -27,7 +27,7 @@ config("private_config") {
}
ohos_shared_library("storage_manager_sa_proxy") {
stack_protector_ret = true
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true

View File

@ -15,7 +15,7 @@ import("//build/ohos.gni")
import("//foundation/filemanagement/storage_service/storage_service_aafwk.gni")
ohos_shared_library("storagestatistics") {
stack_protector_ret = true
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true
@ -63,7 +63,7 @@ ohos_shared_library("storagestatistics") {
}
ohos_shared_library("volumemanager") {
stack_protector_ret = true
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true