diff --git a/base/BUILD.gn b/base/BUILD.gn index e9b037cad9dd1fcb8a75c6111b6afcdd94dd4897..c3d292062eea803845306eccbc997877186744c6 100644 --- a/base/BUILD.gn +++ b/base/BUILD.gn @@ -164,7 +164,11 @@ ohos_shared_library("utils") { if (c_utils_feature_intsan) { sanitize = { integer_overflow = true + cfi = true + cfi_cross_dso = true + debug = false } + branch_protector_ret = "pac_ret" } }