cfi_vcall_icall_only

Signed-off-by: wangkailong <wangkailong6@huawei.com>
Change-Id: Ib34e98f11c08dcebb7a8d37b28b8e9a7f733677c
This commit is contained in:
wangkailong 2024-04-23 14:52:06 +08:00
parent 9a6a13de35
commit 4b172b53bf
9 changed files with 13 additions and 6 deletions

View File

@ -41,7 +41,7 @@ ohos_shared_library("startupconfigentry_napi") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -41,7 +41,7 @@ ohos_shared_library("startuplistener_napi") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -21,7 +21,7 @@ ohos_shared_library("startupmanager_napi") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -41,7 +41,7 @@ ohos_shared_library("startuptask_napi") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -42,6 +42,7 @@ ohos_shared_library("embeddeduiextensionability_napi") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -1283,6 +1283,7 @@ ohos_shared_library("embedded_ui_extension") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"
@ -1330,6 +1331,7 @@ ohos_shared_library("embedded_ui_extension_module") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -751,8 +751,10 @@ void MainThread::ScheduleLaunchAbility(const AbilityInfo &info, const sptr<IRemo
HITRACE_METER_NAME(HITRACE_TAG_ABILITY_MANAGER, __PRETTY_FUNCTION__);
TAG_LOGD(AAFwkTag::APPKIT, "ability %{public}s, type is %{public}d.", info.name.c_str(), info.type);
AAFwk::Want newWant(*want);
newWant.CloseAllFd();
if (want != nullptr) {
AAFwk::Want newWant(*want);
newWant.CloseAllFd();
}
std::shared_ptr<AbilityInfo> abilityInfo = std::make_shared<AbilityInfo>(info);
auto abilityRecord = std::make_shared<AbilityLocalRecord>(abilityInfo, token);
abilityRecord->SetWant(want);

View File

@ -245,6 +245,7 @@ ohos_shared_library("process_options") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"

View File

@ -21,6 +21,7 @@ ohos_shared_library("businessabilityrouter") {
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
cfi_vcall_icall_only = true
debug = false
}
branch_protector_ret = "pac_ret"