From c097cfa2a83fa73672f7e10c98b208b42caccb0c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8F=B6=E6=B1=9F=E6=B5=A9?= <5715935+yejianghao1995@user.noreply.gitee.com> Date: Fri, 8 Aug 2025 09:46:55 +0800 Subject: [PATCH] fuzz warn clear Issue: https://gitee.com/openharmony/arkcompiler_toolchain/issues/ICRNHP Change-Id: I3edd8a856d507e641c7b42d53830178abb16f19e Signed-off-by: yejianghao --- test/fuzztest/BUILD.gn | 18 ------- .../pttypesexceptiondetails_fuzzer/BUILD.gn | 49 ------------------- .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesexceptiondetails_fuzzer.cpp | 45 ----------------- .../pttypesexceptiondetails_fuzzer.h | 21 -------- .../pttypesexceptiondetailscreate_fuzzer.cpp | 8 ++- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...ttypesexceptiondetailsexception_fuzzer.cpp | 48 ------------------ .../pttypesexceptiondetailsexception_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesexceptiondetailstojson_fuzzer.cpp | 45 ----------------- .../pttypesexceptiondetailstojson_fuzzer.h | 21 -------- .../BUILD.gn | 49 ------------------- .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesinternalpropertydesp_fuzzer.cpp | 44 ----------------- .../pttypesinternalpropertydesp_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...typesinternalpropertydesptojson_fuzzer.cpp | 45 ----------------- ...pttypesinternalpropertydesptojson_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...ttypesinternalpropertydespvalue_fuzzer.cpp | 48 ------------------ .../pttypesinternalpropertydespvalue_fuzzer.h | 21 -------- .../BUILD.gn | 49 ------------------- .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesprivatepropertydesp_fuzzer.cpp | 44 ----------------- .../pttypesprivatepropertydesp_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesprivatepropertydespget_fuzzer.cpp | 48 ------------------ .../pttypesprivatepropertydespget_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesprivatepropertydespset_fuzzer.cpp | 48 ------------------ .../pttypesprivatepropertydespset_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...ttypesprivatepropertydesptojson_fuzzer.cpp | 45 ----------------- .../pttypesprivatepropertydesptojson_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...pttypesprivatepropertydespvalue_fuzzer.cpp | 48 ------------------ .../pttypesprivatepropertydespvalue_fuzzer.h | 21 -------- .../pttypesremoteobject_fuzzer/BUILD.gn | 49 ------------------- .../pttypesremoteobject_fuzzer/corpus/init | 14 ------ .../pttypesremoteobject_fuzzer/project.xml | 25 ---------- .../pttypesremoteobject_fuzzer.cpp | 44 ----------------- .../pttypesremoteobject_fuzzer.h | 21 -------- ...pttypesremoteobjectgetclassname_fuzzer.cpp | 1 + .../pttypesremoteobjectgetsubtype_fuzzer.cpp | 1 + .../pttypesremoteobjectgettype_fuzzer.cpp | 1 + .../pttypesremoteobjectgetvalue_fuzzer.cpp | 12 ++++- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...pttypesremoteobjecthasclassname_fuzzer.cpp | 45 ----------------- .../pttypesremoteobjecthasclassname_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesremoteobjecthassubtype_fuzzer.cpp | 45 ----------------- .../pttypesremoteobjecthassubtype_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- ...pttypesremoteobjectsetclassname_fuzzer.cpp | 45 ----------------- .../pttypesremoteobjectsetclassname_fuzzer.h | 21 -------- .../BUILD.gn | 48 ------------------ .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesremoteobjectsetsubtype_fuzzer.cpp | 45 ----------------- .../pttypesremoteobjectsetsubtype_fuzzer.h | 21 -------- .../BUILD.gn | 49 ------------------- .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesremoteobjectsettype_fuzzer.cpp | 45 ----------------- .../pttypesremoteobjectsettype_fuzzer.h | 21 -------- .../BUILD.gn | 49 ------------------- .../corpus/init | 14 ------ .../project.xml | 25 ---------- .../pttypesremoteobjectsetvalue_fuzzer.cpp | 46 ----------------- .../pttypesremoteobjectsetvalue_fuzzer.h | 21 -------- 96 files changed, 16 insertions(+), 2798 deletions(-) delete mode 100644 test/fuzztest/pttypesexceptiondetails_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesexceptiondetails_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesexceptiondetails_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.h delete mode 100644 test/fuzztest/pttypesexceptiondetailsexception_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesexceptiondetailsexception_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesexceptiondetailsexception_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.h delete mode 100644 test/fuzztest/pttypesexceptiondetailstojson_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesexceptiondetailstojson_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesexceptiondetailstojson_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.h delete mode 100755 test/fuzztest/pttypesinternalpropertydesp_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesinternalpropertydesp_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesinternalpropertydesp_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.h delete mode 100755 test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.h delete mode 100755 test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.h delete mode 100755 test/fuzztest/pttypesprivatepropertydesp_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesprivatepropertydesp_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesprivatepropertydesp_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.h delete mode 100755 test/fuzztest/pttypesprivatepropertydespget_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesprivatepropertydespget_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesprivatepropertydespget_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.h delete mode 100755 test/fuzztest/pttypesprivatepropertydespset_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesprivatepropertydespset_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesprivatepropertydespset_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.h delete mode 100755 test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.h delete mode 100755 test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/BUILD.gn delete mode 100755 test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/corpus/init delete mode 100755 test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/project.xml delete mode 100755 test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.cpp delete mode 100755 test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobject_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobject_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobject_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjectsettype_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjectsettype_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjectsettype_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.h delete mode 100644 test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/BUILD.gn delete mode 100644 test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/corpus/init delete mode 100644 test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/project.xml delete mode 100644 test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.cpp delete mode 100644 test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.h diff --git a/test/fuzztest/BUILD.gn b/test/fuzztest/BUILD.gn index 46580108..a2358d7e 100644 --- a/test/fuzztest/BUILD.gn +++ b/test/fuzztest/BUILD.gn @@ -34,44 +34,26 @@ group("fuzztest") { "protocolhandlersendreply_fuzzer:fuzztest", "pttypesbreakpointparseid_fuzzer:fuzztest", "pttypesbreakpointtostring_fuzzer:fuzztest", - "pttypesexceptiondetails_fuzzer:fuzztest", "pttypesexceptiondetailscolumn_fuzzer:fuzztest", "pttypesexceptiondetailscreate_fuzzer:fuzztest", - "pttypesexceptiondetailsexception_fuzzer:fuzztest", "pttypesexceptiondetailsexceptionid_fuzzer:fuzztest", "pttypesexceptiondetailsexecutioncontextid_fuzzer:fuzztest", "pttypesexceptiondetailsline_fuzzer:fuzztest", "pttypesexceptiondetailsscriptid_fuzzer:fuzztest", "pttypesexceptiondetailstext_fuzzer:fuzztest", - "pttypesexceptiondetailstojson_fuzzer:fuzztest", "pttypesexceptiondetailsurl_fuzzer:fuzztest", - "pttypesinternalpropertydesp_fuzzer:fuzztest", "pttypesinternalpropertydespcreate_fuzzer:fuzztest", "pttypesinternalpropertydespname_fuzzer:fuzztest", - "pttypesinternalpropertydesptojson_fuzzer:fuzztest", - "pttypesinternalpropertydespvalue_fuzzer:fuzztest", "pttypesobjectremoteobject_fuzzer:fuzztest", "pttypesprimitiveremoteobject_fuzzer:fuzztest", - "pttypesprivatepropertydesp_fuzzer:fuzztest", "pttypesprivatepropertydespcreate_fuzzer:fuzztest", - "pttypesprivatepropertydespget_fuzzer:fuzztest", "pttypesprivatepropertydespname_fuzzer:fuzztest", - "pttypesprivatepropertydespset_fuzzer:fuzztest", - "pttypesprivatepropertydesptojson_fuzzer:fuzztest", - "pttypesprivatepropertydespvalue_fuzzer:fuzztest", - "pttypesremoteobject_fuzzer:fuzztest", "pttypesremoteobjectdescription_fuzzer:fuzztest", "pttypesremoteobjectgetclassname_fuzzer:fuzztest", "pttypesremoteobjectgetsubtype_fuzzer:fuzztest", "pttypesremoteobjectgettype_fuzzer:fuzztest", "pttypesremoteobjectgetvalue_fuzzer:fuzztest", - "pttypesremoteobjecthasclassname_fuzzer:fuzztest", - "pttypesremoteobjecthassubtype_fuzzer:fuzztest", "pttypesremoteobjectobjectid_fuzzer:fuzztest", - "pttypesremoteobjectsetclassname_fuzzer:fuzztest", - "pttypesremoteobjectsetsubtype_fuzzer:fuzztest", - "pttypesremoteobjectsettype_fuzzer:fuzztest", - "pttypesremoteobjectsetvalue_fuzzer:fuzztest", "pttypesremoteobjectunserializablevalue_fuzzer:fuzztest", "pttypesstringremoteobject_fuzzer:fuzztest", "pttypessymbolremoteobject_fuzzer:fuzztest", diff --git a/test/fuzztest/pttypesexceptiondetails_fuzzer/BUILD.gn b/test/fuzztest/pttypesexceptiondetails_fuzzer/BUILD.gn deleted file mode 100644 index f18e4832..00000000 --- a/test/fuzztest/pttypesexceptiondetails_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesExceptionDetailsFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesexceptiondetails_fuzzer" - - sources = [ "pttypesexceptiondetails_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesExceptionDetailsFuzzTest" ] -} diff --git a/test/fuzztest/pttypesexceptiondetails_fuzzer/corpus/init b/test/fuzztest/pttypesexceptiondetails_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesexceptiondetails_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetails_fuzzer/project.xml b/test/fuzztest/pttypesexceptiondetails_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesexceptiondetails_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.cpp b/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.cpp deleted file mode 100644 index 4e551499..00000000 --- a/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesexceptiondetails_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesExceptionDetailsFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - ExceptionDetails details; - - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesExceptionDetailsFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.h b/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.h deleted file mode 100644 index 2cea938e..00000000 --- a/test/fuzztest/pttypesexceptiondetails_fuzzer/pttypesexceptiondetails_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesexceptiondetails_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailscreate_fuzzer/pttypesexceptiondetailscreate_fuzzer.cpp b/test/fuzztest/pttypesexceptiondetailscreate_fuzzer/pttypesexceptiondetailscreate_fuzzer.cpp index df2df84d..bc3c9811 100644 --- a/test/fuzztest/pttypesexceptiondetailscreate_fuzzer/pttypesexceptiondetailscreate_fuzzer.cpp +++ b/test/fuzztest/pttypesexceptiondetailscreate_fuzzer/pttypesexceptiondetailscreate_fuzzer.cpp @@ -33,11 +33,9 @@ namespace OHOS { // if data: "{\"\":1," // cJSON_ParseWithLength will heap-buffer-overflow // https://github.com/DaveGamble/cJSON/issues/804 - cJSON* cjson = NULL; - if (cjson != NULL) { - PtJson pjson(cjson); - auto details = ExceptionDetails::Create(pjson); - cJSON_Delete(cjson); + std::unique_ptr pjson = PtJson::Parse(std::string((const char*)data, size)); + if (pjson != NULL) { + auto details = ExceptionDetails::Create(*pjson); } JSNApi::DestroyJSVM(vm); diff --git a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/BUILD.gn b/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/BUILD.gn deleted file mode 100644 index 2456bd7f..00000000 --- a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesExceptionDetailsExceptionFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesexceptiondetailsexception_fuzzer" - - sources = [ "pttypesexceptiondetailsexception_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesExceptionDetailsExceptionFuzzTest" ] -} diff --git a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/corpus/init b/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/project.xml b/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.cpp b/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.cpp deleted file mode 100644 index c844e7f6..00000000 --- a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesexceptiondetailsexception_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesExceptionDetailsExceptionFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - ExceptionDetails details; - std::unique_ptr obj = std::make_unique(); - details.SetException(std::move(obj)); - details.GetException(); - details.HasException(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesExceptionDetailsExceptionFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.h b/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.h deleted file mode 100644 index acd987fe..00000000 --- a/test/fuzztest/pttypesexceptiondetailsexception_fuzzer/pttypesexceptiondetailsexception_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesexceptiondetailsexception_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/BUILD.gn b/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/BUILD.gn deleted file mode 100644 index 919804d3..00000000 --- a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesExceptionDetailsToJsonFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesexceptiondetailstojson_fuzzer" - - sources = [ "pttypesexceptiondetailstojson_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesExceptionDetailsToJsonFuzzTest" ] -} diff --git a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/corpus/init b/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/project.xml b/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.cpp b/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.cpp deleted file mode 100644 index 3ab63756..00000000 --- a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesexceptiondetailstojson_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesExceptionDetailsToJsonFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - ExceptionDetails details; - auto pj = details.ToJson(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesExceptionDetailsToJsonFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.h b/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.h deleted file mode 100644 index 84fd7fcd..00000000 --- a/test/fuzztest/pttypesexceptiondetailstojson_fuzzer/pttypesexceptiondetailstojson_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesexceptiondetailstojson_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/BUILD.gn b/test/fuzztest/pttypesinternalpropertydesp_fuzzer/BUILD.gn deleted file mode 100755 index 693c79fe..00000000 --- a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesInternalPropertyDespFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesinternalpropertydesp_fuzzer" - - sources = [ "pttypesinternalpropertydesp_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesInternalPropertyDespFuzzTest" ] -} diff --git a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/corpus/init b/test/fuzztest/pttypesinternalpropertydesp_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/project.xml b/test/fuzztest/pttypesinternalpropertydesp_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.cpp b/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.cpp deleted file mode 100755 index 41350291..00000000 --- a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesinternalpropertydesp_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesInternalPropertyDespFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - InternalPropertyDescriptor desp; - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesInternalPropertyDespFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.h b/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.h deleted file mode 100755 index 8952a8a3..00000000 --- a/test/fuzztest/pttypesinternalpropertydesp_fuzzer/pttypesinternalpropertydesp_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesinternalpropertydesp_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/BUILD.gn b/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/BUILD.gn deleted file mode 100755 index f70043e1..00000000 --- a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesInternalPropertyDespToJsonFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer" - - sources = [ "pttypesinternalpropertydesptojson_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesInternalPropertyDespToJsonFuzzTest" ] -} diff --git a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/corpus/init b/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/project.xml b/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.cpp b/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.cpp deleted file mode 100755 index 0b28e5d9..00000000 --- a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesinternalpropertydesptojson_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesInternalPropertyDespToJsonFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - InternalPropertyDescriptor desp; - desp.ToJson(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesInternalPropertyDespToJsonFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.h b/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.h deleted file mode 100755 index 38cb0bee..00000000 --- a/test/fuzztest/pttypesinternalpropertydesptojson_fuzzer/pttypesinternalpropertydesptojson_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesinternalpropertydesptojson_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/BUILD.gn b/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/BUILD.gn deleted file mode 100755 index fbd69f05..00000000 --- a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesInternalPropertyDespValueFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer" - - sources = [ "pttypesinternalpropertydespvalue_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesInternalPropertyDespValueFuzzTest" ] -} diff --git a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/corpus/init b/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/project.xml b/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.cpp b/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.cpp deleted file mode 100755 index 6a7dfbc6..00000000 --- a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesinternalpropertydespvalue_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesInternalPropertyDespValueFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - InternalPropertyDescriptor desp; - auto remote = std::make_unique(); - desp.SetValue(std::move(remote)); - desp.GetValue(); - desp.HasValue(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesInternalPropertyDespValueFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.h b/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.h deleted file mode 100755 index 9114c64f..00000000 --- a/test/fuzztest/pttypesinternalpropertydespvalue_fuzzer/pttypesinternalpropertydespvalue_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesinternalpropertydespvalue_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/BUILD.gn b/test/fuzztest/pttypesprivatepropertydesp_fuzzer/BUILD.gn deleted file mode 100755 index 6d7fa8f9..00000000 --- a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesPrivatePropertyDespFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydesp_fuzzer" - - sources = [ "pttypesprivatepropertydesp_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesPrivatePropertyDespFuzzTest" ] -} diff --git a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/corpus/init b/test/fuzztest/pttypesprivatepropertydesp_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/project.xml b/test/fuzztest/pttypesprivatepropertydesp_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.cpp b/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.cpp deleted file mode 100755 index 64ce9881..00000000 --- a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesprivatepropertydesp_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesPrivatePropertyDespFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - PrivatePropertyDescriptor desp; - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesPrivatePropertyDespFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.h b/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.h deleted file mode 100755 index f7038c2c..00000000 --- a/test/fuzztest/pttypesprivatepropertydesp_fuzzer/pttypesprivatepropertydesp_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesprivatepropertydesp_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/BUILD.gn b/test/fuzztest/pttypesprivatepropertydespget_fuzzer/BUILD.gn deleted file mode 100755 index 9f4d8b99..00000000 --- a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesPrivatePropertyDespGetFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydespget_fuzzer" - - sources = [ "pttypesprivatepropertydespget_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesPrivatePropertyDespGetFuzzTest" ] -} diff --git a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/corpus/init b/test/fuzztest/pttypesprivatepropertydespget_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/project.xml b/test/fuzztest/pttypesprivatepropertydespget_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.cpp b/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.cpp deleted file mode 100755 index aca9aa74..00000000 --- a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesprivatepropertydespget_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesPrivatePropertyDespGetFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - PrivatePropertyDescriptor desp; - auto remote = std::make_unique(); - desp.SetGet(std::move(remote)); - desp.GetGet(); - desp.HasGet(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesPrivatePropertyDespGetFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.h b/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.h deleted file mode 100755 index 151fe992..00000000 --- a/test/fuzztest/pttypesprivatepropertydespget_fuzzer/pttypesprivatepropertydespget_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesprivatepropertydespget_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/BUILD.gn b/test/fuzztest/pttypesprivatepropertydespset_fuzzer/BUILD.gn deleted file mode 100755 index 38534229..00000000 --- a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesPrivatePropertyDespSetFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydespset_fuzzer" - - sources = [ "pttypesprivatepropertydespset_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesPrivatePropertyDespSetFuzzTest" ] -} diff --git a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/corpus/init b/test/fuzztest/pttypesprivatepropertydespset_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/project.xml b/test/fuzztest/pttypesprivatepropertydespset_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.cpp b/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.cpp deleted file mode 100755 index 26f79d0e..00000000 --- a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesprivatepropertydespset_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesPrivatePropertyDespSetFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - PrivatePropertyDescriptor desp; - auto remote = std::make_unique(); - desp.SetSet(std::move(remote)); - desp.GetSet(); - desp.HasSet(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesPrivatePropertyDespSetFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.h b/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.h deleted file mode 100755 index 99809b6a..00000000 --- a/test/fuzztest/pttypesprivatepropertydespset_fuzzer/pttypesprivatepropertydespset_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesprivatepropertydespset_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/BUILD.gn b/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/BUILD.gn deleted file mode 100755 index bfe7d38c..00000000 --- a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesPrivatePropertyDespToJsonFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer" - - sources = [ "pttypesprivatepropertydesptojson_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesPrivatePropertyDespToJsonFuzzTest" ] -} diff --git a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/corpus/init b/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/project.xml b/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.cpp b/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.cpp deleted file mode 100755 index 75016448..00000000 --- a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesprivatepropertydesptojson_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesPrivatePropertyDespToJsonFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - PrivatePropertyDescriptor desp; - desp.ToJson(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesPrivatePropertyDespToJsonFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.h b/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.h deleted file mode 100755 index 8adb0746..00000000 --- a/test/fuzztest/pttypesprivatepropertydesptojson_fuzzer/pttypesprivatepropertydesptojson_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesprivatepropertydespcreate_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/BUILD.gn b/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/BUILD.gn deleted file mode 100755 index 487617e3..00000000 --- a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesPrivatePropertyDespValueFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer" - - sources = [ "pttypesprivatepropertydespvalue_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesPrivatePropertyDespValueFuzzTest" ] -} diff --git a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/corpus/init b/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/corpus/init deleted file mode 100755 index b690838e..00000000 --- a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/project.xml b/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/project.xml deleted file mode 100755 index 176585d1..00000000 --- a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.cpp b/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.cpp deleted file mode 100755 index da8b235b..00000000 --- a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.cpp +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesprivatepropertydespvalue_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesPrivatePropertyDespValueFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - PrivatePropertyDescriptor desp; - auto remote = std::make_unique(); - desp.SetValue(std::move(remote)); - desp.GetValue(); - desp.HasValue(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesPrivatePropertyDespValueFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.h b/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.h deleted file mode 100755 index 0d68ba5d..00000000 --- a/test/fuzztest/pttypesprivatepropertydespvalue_fuzzer/pttypesprivatepropertydespvalue_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesprivatepropertydespvalue_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobject_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobject_fuzzer/BUILD.gn deleted file mode 100644 index 99b1c201..00000000 --- a/test/fuzztest/pttypesremoteobject_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobject_fuzzer" - - sources = [ "pttypesremoteobject_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobject_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobject_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobject_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobject_fuzzer/project.xml b/test/fuzztest/pttypesremoteobject_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobject_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.cpp b/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.cpp deleted file mode 100644 index 7b327368..00000000 --- a/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.cpp +++ /dev/null @@ -1,44 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobject_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.h b/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.h deleted file mode 100644 index 0109960d..00000000 --- a/test/fuzztest/pttypesremoteobject_fuzzer/pttypesremoteobject_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobject_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectgetclassname_fuzzer/pttypesremoteobjectgetclassname_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectgetclassname_fuzzer/pttypesremoteobjectgetclassname_fuzzer.cpp index e41e5e4f..0b7e5089 100644 --- a/test/fuzztest/pttypesremoteobjectgetclassname_fuzzer/pttypesremoteobjectgetclassname_fuzzer.cpp +++ b/test/fuzztest/pttypesremoteobjectgetclassname_fuzzer/pttypesremoteobjectgetclassname_fuzzer.cpp @@ -32,6 +32,7 @@ namespace OHOS { } RemoteObject obj; obj.SetClassName(std::string((const char*)data, size)); + obj.HasClassName(); obj.GetClassName(); JSNApi::DestroyJSVM(vm); } diff --git a/test/fuzztest/pttypesremoteobjectgetsubtype_fuzzer/pttypesremoteobjectgetsubtype_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectgetsubtype_fuzzer/pttypesremoteobjectgetsubtype_fuzzer.cpp index 718b49e7..e540a038 100644 --- a/test/fuzztest/pttypesremoteobjectgetsubtype_fuzzer/pttypesremoteobjectgetsubtype_fuzzer.cpp +++ b/test/fuzztest/pttypesremoteobjectgetsubtype_fuzzer/pttypesremoteobjectgetsubtype_fuzzer.cpp @@ -32,6 +32,7 @@ namespace OHOS { } RemoteObject obj; obj.SetSubType(std::string((const char*)data, size)); + obj.HasSubType(); std::string type = obj.GetSubType(); JSNApi::DestroyJSVM(vm); } diff --git a/test/fuzztest/pttypesremoteobjectgettype_fuzzer/pttypesremoteobjectgettype_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectgettype_fuzzer/pttypesremoteobjectgettype_fuzzer.cpp index ddc0abb3..b3e4b2f8 100644 --- a/test/fuzztest/pttypesremoteobjectgettype_fuzzer/pttypesremoteobjectgettype_fuzzer.cpp +++ b/test/fuzztest/pttypesremoteobjectgettype_fuzzer/pttypesremoteobjectgettype_fuzzer.cpp @@ -31,6 +31,7 @@ namespace OHOS { return; } RemoteObject obj; + obj.SetType(std::string((const char*)data, size)); std::string type = obj.GetType(); JSNApi::DestroyJSVM(vm); } diff --git a/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/pttypesremoteobjectgetvalue_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/pttypesremoteobjectgetvalue_fuzzer.cpp index db12c3f0..fba42fcd 100644 --- a/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/pttypesremoteobjectgetvalue_fuzzer.cpp +++ b/test/fuzztest/pttypesremoteobjectgetvalue_fuzzer/pttypesremoteobjectgetvalue_fuzzer.cpp @@ -30,9 +30,17 @@ namespace OHOS { if (size <= 0 || data == NULL) { return; } + double input = 0; + if (size > sizeof(double)) { + size = sizeof(double); + } + if (memcpy_s(&input, sizeof(double), data, size) != 0) { + std::cout << "memcpy_s failed"; + UNREACHABLE(); + } + Local value(NumberRef::New(vm, input)); RemoteObject obj; - Local val = JSValueRef::Undefined(vm); - obj.SetValue(val); + obj.SetValue(value); Local ref = obj.GetValue(); ref.IsEmpty(); obj.HasValue(); diff --git a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/BUILD.gn deleted file mode 100644 index 752880f2..00000000 --- a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectHasClassNameFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer" - - sources = [ "pttypesremoteobjecthasclassname_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectHasClassNameFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.cpp b/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.cpp deleted file mode 100644 index eddcbc1b..00000000 --- a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjecthasclassname_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectHasClassNameFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - obj.HasClassName(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectHasClassNameFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.h b/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.h deleted file mode 100644 index e3f191fa..00000000 --- a/test/fuzztest/pttypesremoteobjecthasclassname_fuzzer/pttypesremoteobjecthasclassname_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjecthasclassname_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/BUILD.gn deleted file mode 100644 index 3565a38a..00000000 --- a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectHasSubTypeFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer" - - sources = [ "pttypesremoteobjecthassubtype_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectHasSubTypeFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.cpp b/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.cpp deleted file mode 100644 index bd232bb4..00000000 --- a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjecthassubtype_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectHasSubTypeFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - obj.HasSubType(); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectHasSubTypeFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.h b/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.h deleted file mode 100644 index 3f2d8737..00000000 --- a/test/fuzztest/pttypesremoteobjecthassubtype_fuzzer/pttypesremoteobjecthassubtype_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjecthassubtype_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/BUILD.gn deleted file mode 100644 index 22ccc552..00000000 --- a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectSetClassNameFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer" - - sources = [ "pttypesremoteobjectsetclassname_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectSetClassNameFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.cpp deleted file mode 100644 index 1f62a1c6..00000000 --- a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjectsetclassname_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectSetClassNameFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - obj.SetClassName(std::string((const char*)data, size)); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectSetClassNameFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.h b/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.h deleted file mode 100644 index 37a0c963..00000000 --- a/test/fuzztest/pttypesremoteobjectsetclassname_fuzzer/pttypesremoteobjectsetclassname_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjectsetclassname_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/BUILD.gn deleted file mode 100644 index 9eee31da..00000000 --- a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/BUILD.gn +++ /dev/null @@ -1,48 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectSetSubTypeFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer" - - sources = [ "pttypesremoteobjectsetsubtype_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectSetSubTypeFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.cpp deleted file mode 100644 index e2541077..00000000 --- a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjectsetsubtype_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectSetSubTypeFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - obj.SetSubType(std::string((const char*)data, size)); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectSetSubTypeFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.h b/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.h deleted file mode 100644 index 26891029..00000000 --- a/test/fuzztest/pttypesremoteobjectsetsubtype_fuzzer/pttypesremoteobjectsetsubtype_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjectsetsubtype_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjectsettype_fuzzer/BUILD.gn deleted file mode 100644 index 0cfd154d..00000000 --- a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectSetTypeFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectsettype_fuzzer" - - sources = [ "pttypesremoteobjectsettype_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectSetTypeFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjectsettype_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjectsettype_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.cpp deleted file mode 100644 index 2bd249a8..00000000 --- a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.cpp +++ /dev/null @@ -1,45 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjectsettype_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectSetTypeFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - obj.SetType(std::string((const char*)data, size)); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectSetTypeFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.h b/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.h deleted file mode 100644 index 0bdb82b5..00000000 --- a/test/fuzztest/pttypesremoteobjectsettype_fuzzer/pttypesremoteobjectsettype_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjectsettype_fuzzer" - -#endif \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/BUILD.gn b/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/BUILD.gn deleted file mode 100644 index 90b44f1b..00000000 --- a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/BUILD.gn +++ /dev/null @@ -1,49 +0,0 @@ -# Copyright (c) 2025 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. - -##################################hydra-fuzz################################### -import("//arkcompiler/toolchain/test/test_helper.gni") -import("//build/config/features.gni") -import("//build/ohos.gni") -import("//build/test.gni") - -##################################fuzztest##################################### -ohos_fuzztest("PtTypesRemoteObjectSetValueFuzzTest") { - module_out_path = toolchain_output_path - - fuzz_config_file = - "//arkcompiler/toolchain/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer" - - sources = [ "pttypesremoteobjectsetvalue_fuzzer.cpp" ] - - configs = [ "//arkcompiler/toolchain:toolchain_test_config" ] - - deps = [ "../../../tooling/dynamic:libark_ecma_debugger_set" ] - - # hiviewdfx libraries - external_deps = hiviewdfx_ext_deps - external_deps += [ - "cJSON:cjson", - "ets_runtime:libark_jsruntime", - "icu:shared_icuuc", - "libuv:uv", - sdk_libc_secshared_dep, - ] - deps += hiviewdfx_deps -} - -group("fuzztest") { - testonly = true - deps = [] - deps += [ ":PtTypesRemoteObjectSetValueFuzzTest" ] -} diff --git a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/corpus/init b/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/corpus/init deleted file mode 100644 index b690838e..00000000 --- a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/corpus/init +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) 2025 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. - -FUZZ \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/project.xml b/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/project.xml deleted file mode 100644 index 176585d1..00000000 --- a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/project.xml +++ /dev/null @@ -1,25 +0,0 @@ - - - - - - 1000 - - 300 - - 4096 - - \ No newline at end of file diff --git a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.cpp b/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.cpp deleted file mode 100644 index 17dbf45c..00000000 --- a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.cpp +++ /dev/null @@ -1,46 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#include "pttypesremoteobjectsetvalue_fuzzer.h" -#include "ecmascript/napi/include/jsnapi.h" -#include "tooling/dynamic/base/pt_types.h" - -using namespace panda; -using namespace panda::ecmascript; -using namespace panda::ecmascript::tooling; - -namespace OHOS { - void PtTypesRemoteObjectSetValueFuzzTest(const uint8_t* data, size_t size) - { - RuntimeOption option; - option.SetLogLevel(RuntimeOption::LOG_LEVEL::ERROR); - auto vm = JSNApi::CreateJSVM(option); - if (size <= 0 || data == NULL) { - return; - } - RemoteObject obj; - Local val = JSValueRef::Undefined(vm); - obj.SetValue(val); - JSNApi::DestroyJSVM(vm); - } -} - -// Fuzzer entry point. -extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) -{ - // Run your code on data. - OHOS::PtTypesRemoteObjectSetValueFuzzTest(data, size); - return 0; -} diff --git a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.h b/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.h deleted file mode 100644 index d434278e..00000000 --- a/test/fuzztest/pttypesremoteobjectsetvalue_fuzzer/pttypesremoteobjectsetvalue_fuzzer.h +++ /dev/null @@ -1,21 +0,0 @@ -/* - * Copyright (c) 2025 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. - */ - -#ifndef PROTOCOLHANDLER_FUZZER_H -#define PROTOCOLHANDLER_FUZZER_H - -#define FUZZ_PROJECT_NAME "pttypesremoteobjectsetvalue_fuzzer" - -#endif \ No newline at end of file -- Gitee