fix:屏蔽高风险fuzz接口

Signed-off-by: weimengxue <weimengxue1@h-partners.com>
This commit is contained in:
weimengxue 2024-10-11 03:34:46 +00:00
parent 88b5509f9c
commit ddbe901e3c
17 changed files with 22 additions and 17 deletions

View File

@ -375,7 +375,13 @@ napi_value NAPIRemoteObject::ThenCallback(napi_env env, napi_callback_info info)
napi_value argv[ARGV_LENGTH_1] = {nullptr};
void* data = nullptr;
napi_get_cb_info(env, info, &argc, argv, nullptr, &data);
napi_value res;
CallbackParam *param = static_cast<CallbackParam *>(data);
if (param == nullptr) {
ZLOGE(LOG_LABEL, "param is null");
napi_get_undefined(env, &res);
return res;
}
bool result = false;
napi_get_value_bool(param->env, argv[ARGV_INDEX_0], &result);
if (!result) {
@ -391,7 +397,6 @@ napi_value NAPIRemoteObject::ThenCallback(napi_env env, napi_callback_info info)
std::unique_lock<std::mutex> lock(param->lockInfo->mutex);
param->lockInfo->ready = true;
param->lockInfo->condition.notify_all();
napi_value res;
napi_get_undefined(env, &res);
return res;
}

View File

@ -49,7 +49,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":GetFeatureSizeFuzzTest",
# ":GetFeatureSizeFuzzTest",
]
}

View File

@ -50,7 +50,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":GetRpcFeatureAckFuzzTest",
# ":GetRpcFeatureAckFuzzTest",
]
}

View File

@ -49,7 +49,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":GetTokenFromDataFuzzTest",
# ":GetTokenFromDataFuzzTest",
]
}

View File

@ -50,7 +50,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":GetTokenIdSizeFuzzTest",
# ":GetTokenIdSizeFuzzTest",
]
}

View File

@ -49,7 +49,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":IsATEnableFuzzTest",
# ":IsATEnableFuzzTest",
]
}

View File

@ -50,7 +50,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":IsFeatureAckFuzzTest",
# ":IsFeatureAckFuzzTest",
]
}

View File

@ -50,7 +50,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":SetFeatureTransDataFuzzTest",
# ":SetFeatureTransDataFuzzTest",
]
}

View File

@ -52,7 +52,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":BufferObjectFuzzTest",
# ":BufferObjectFuzzTest",
]
}

View File

@ -49,7 +49,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":CloseDatabusSessionFuzzTest",
# ":CloseDatabusSessionFuzzTest",
]
}
###############################################################################

View File

@ -43,7 +43,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":DBinderServiceFuzzTest",
# ":DBinderServiceFuzzTest",
]
}
###############################################################################

View File

@ -46,7 +46,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":DetachProxyObjectFuzzTest",
# ":DetachProxyObjectFuzzTest",
]
}
###############################################################################

View File

@ -45,7 +45,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":LoadSystemAbilityCompleteFuzzTest",
# ":LoadSystemAbilityCompleteFuzzTest",
]
}
###############################################################################

View File

@ -43,7 +43,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":NoticeDeviceDieFuzzTest",
# ":NoticeDeviceDieFuzzTest",
]
}
###############################################################################

View File

@ -43,7 +43,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":NoticeServiceDieFuzzTest",
# ":NoticeServiceDieFuzzTest",
]
}
###############################################################################

View File

@ -46,7 +46,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":OnBytesReceivedFuzzTest",
# ":OnBytesReceivedFuzzTest",
]
}
###############################################################################

View File

@ -46,7 +46,7 @@ group("fuzztest") {
deps = []
deps += [
# deps file
#":SendDataToRemoteFuzzTest",
# ":SendDataToRemoteFuzzTest",
]
}
###############################################################################