Description: oaid增加前向CFI

Feature or Bugfix: feature
Binary Source: NO
Signed-off-by: xiangjiang <xiangjiang@huawei.com>
This commit is contained in:
xiangjiang 2023-11-25 14:39:23 +08:00
parent e7e1b0a9d5
commit 969fb8482c
5 changed files with 38 additions and 0 deletions

19
cfi_blocklist.txt Normal file
View File

@ -0,0 +1,19 @@
# Copyright (C) 2022-2023 Huawei Device Co., Ltd.
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
[cfi]
type:*OHOS::Parcel*
type:*OHOS::RefBase*
type:*OHOS::MessageParcel*
type:*OHOS::IRemoteObject*
type:*OHOS::IRemoteBroker*

View File

@ -29,6 +29,10 @@ ohos_shared_library("oaid_client") {
]
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
blocklist = "../../cfi_blocklist.txt"
boundary_sanitize = true
integer_overflow = true
ubsan = true

View File

@ -42,6 +42,10 @@ ohos_shared_library("oaid") {
]
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
blocklist = "../../../../../cfi_blocklist.txt"
boundary_sanitize = true
integer_overflow = true
ubsan = true

View File

@ -29,6 +29,10 @@ ohos_shared_library("oaid_service") {
public_configs = [ ":oaid_service_config" ]
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
blocklist = "../cfi_blocklist.txt"
boundary_sanitize = true
integer_overflow = true
ubsan = true

View File

@ -27,6 +27,13 @@ ohos_source_set("oaid_utils") {
deps = []
sanitize = {
cfi = true
cfi_cross_dso = true
debug = false
blocklist = "../cfi_blocklist.txt"
}
external_deps = [
"c_utils:utils",
"hilog:libhilog",