fix pac protector issue

Signed-off-by: lizhifeng <lizhifeng23@huawei.com>
This commit is contained in:
lizhifeng
2025-08-25 21:52:58 +08:00
parent 0515031287
commit 2a6980bbe8
4 changed files with 9 additions and 3 deletions
-1
View File
@@ -21,7 +21,6 @@ declare_args() {
}
common_cflags = [
"-fstack-protector-strong",
"-D_FORTIFY_SOURCE=2",
"-fdata-sections",
"-ffunction-sections",
+1
View File
@@ -21,6 +21,7 @@ ohos_shared_library("connectedtag") {
"$NFC_TAG_DIR/interfaces/inner_api/include",
]
defines = [ "NFC_TAG_HILOG" ]
branch_protector_ret = "pac_ret"
sources = [
"nfc_napi_adapter.cpp",
+4 -1
View File
@@ -20,6 +20,9 @@ ohos_fuzztest("FrameworkFuzzTest") {
module_out_path = "connected_nfc_tag/nfc_tag_service/"
fuzz_config_file = "$NFC_TAG_DIR/test/fuzztest/framework_fuzzer"
defines = global_defines
cflags_cc = [ "--coverage" ]
cflags = [ "--coverage" ]
ldflags = [ "--coverage" ]
sources = [
"nfc_tag_proxy_fuzzer.cpp",
]
@@ -52,4 +55,4 @@ group("fuzztest") {
# deps file
":FrameworkFuzzTest",
]
}
}
+4 -1
View File
@@ -20,6 +20,9 @@ ohos_fuzztest("ServiceFuzzTest") {
module_out_path = "connected_nfc_tag/nfc_tag_service/"
fuzz_config_file = "$NFC_TAG_DIR/test/fuzztest/service_fuzzer"
defines = global_defines
cflags_cc = [ "--coverage" ]
cflags = [ "--coverage" ]
ldflags = [ "--coverage" ]
sources = [
"nfc_tag_service_fuzzer.cpp",
]
@@ -52,4 +55,4 @@ group("fuzztest") {
# deps file
":ServiceFuzzTest",
]
}
}