mirror of
https://github.com/openharmony/communication_connected_nfc_tag.git
synced 2026-07-01 21:54:03 -04:00
fix pac protector issue
Signed-off-by: lizhifeng <lizhifeng23@huawei.com>
This commit is contained in:
@@ -21,7 +21,6 @@ declare_args() {
|
||||
}
|
||||
|
||||
common_cflags = [
|
||||
"-fstack-protector-strong",
|
||||
"-D_FORTIFY_SOURCE=2",
|
||||
"-fdata-sections",
|
||||
"-ffunction-sections",
|
||||
|
||||
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user