add msdp cfi Signed-off-by:li-bo-boblove<boblove.libo@huawei.com>

Signed-off-by: li-bo-boblove <boblove.libo@huawei.com>
This commit is contained in:
li-bo-boblove 2023-11-11 15:41:27 +08:00
parent 6ef40bfbe1
commit 47ed585ac8
3 changed files with 24 additions and 1 deletions

View File

@ -28,6 +28,14 @@ config("devicestatus_callback_config") {
ohos_shared_library("stationary") {
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"${device_status_frameworks_path}/js/napi/src/devicestatus_event.cpp",
"${device_status_frameworks_path}/js/napi/src/devicestatus_napi.cpp",

View File

@ -24,7 +24,14 @@ config("devicestatusnapi_private_config") {
ohos_shared_library("deviceagent") {
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [ "./devicestatus_agent.cpp" ]
configs = [

View File

@ -55,6 +55,14 @@ ohos_shared_library("devicestatus_mock") {
ohos_shared_library("devicestatus_algo") {
branch_protector_ret = "pac_ret"
sanitize = {
integer_overflow = true
ubsan = true
boundary_sanitize = true
cfi = true
cfi_cross_dso = true
debug = false
}
sources = [
"src/algorithm/algo_absolute_still.cpp",
"src/algorithm/algo_base.cpp",