mirror of
https://github.com/openharmony/security_deviceauth.git
synced 2026-08-25 13:19:36 -04:00
@@ -35,27 +35,27 @@ group("deviceauth_test_build") {
|
||||
if (os_level == "standard") {
|
||||
testonly = true
|
||||
deps += [
|
||||
"test/fuzztest/group_auth_fuzz_test/authDevice_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_auth_fuzz_test/ga_processData_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/addMemberToGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/checkAccessToGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/createGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/deleteGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/deleteMemberFromGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getDeviceInfoById_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getGroupInfoById_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getGroupInfo_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getJoinedGroups_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getPkInfoList_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getRegisterInfo_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getRelatedGroups_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/getTrustedDevices_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/gm_processData_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/isDeviceInGroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/regCallback_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/regDataChangeListener_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/unRegCallback_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manager_fuzz_test/unRegDataChangeListener_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_auth/authdevice_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_auth/processauthdata_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/addmember_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/checkaccess_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/creategroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/deletegroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/deletemember_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getdeviceinfobyid_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getgroupinfo_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getgroupinfobyid_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getjoinedgroups_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getpkinfolist_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getregisterinfo_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/getrelatedgroups_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/gettrusteddevices_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/isdeviceingroup_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/processbinddata_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/registercallback_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/registerdatachangelistener_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/unregistercallback_fuzzer:fuzztest",
|
||||
"test/fuzztest/group_manage/unregisterdatachangelistener_fuzzer:fuzztest",
|
||||
"test/unittest/deviceauth:deviceauth_llt",
|
||||
]
|
||||
}
|
||||
|
||||
+4
-2
@@ -17,13 +17,15 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_auth"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("AuthDeviceFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file =
|
||||
"//base/security/deviceauth/test/fuzztest/group_auth/authdevice_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "authDevice_fuzzer.cpp" ]
|
||||
sources = [ "authdevice_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "authDevice_fuzzer.h"
|
||||
#include "authdevice_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
void OnError(int64_t requestId, int operationCode, int errorCode, const char *errorReturn) {}
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "authDevice_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "authdevice_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_auth"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("ProcessAuthDataFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_auth/processauthdata_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "processData_fuzzer.cpp" ]
|
||||
sources = [ "processauthdata_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "processData_fuzzer.h"
|
||||
#include "processauthdata_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
void OnError(int64_t requestId, int operationCode, int errorCode, const char *errorReturn) {}
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "ga_processData_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "processauthdata_fuzzer"
|
||||
#endif
|
||||
+6
-4
@@ -17,13 +17,15 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("AddMemberToGroupFuzzTest") {
|
||||
ohos_fuzztest("AddMemberFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file =
|
||||
"//base/security/deviceauth/test/fuzztest/group_manage/addmember_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "addMemberToGroup_fuzzer.cpp" ]
|
||||
sources = [ "addmember_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -44,7 +46,7 @@ group("fuzztest") {
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":AddMemberToGroupFuzzTest",
|
||||
":AddMemberFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "addMemberToGroup_fuzzer.h"
|
||||
#include "addmember_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoAddMemberToGroup(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "addMemberToGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "addmember_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
@@ -0,0 +1,52 @@
|
||||
# Copyright (c) 2022 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.
|
||||
|
||||
import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("CheckAccessFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file =
|
||||
"//base/security/deviceauth/test/fuzztest/group_manage/checkaccess_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "checkaccess_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-DHILOG_ENABLE",
|
||||
]
|
||||
if (target_cpu == "arm") {
|
||||
cflags += [ "-DBINDER_IPC_32BIT" ]
|
||||
}
|
||||
|
||||
deps = [ "//base/security/deviceauth/services:deviceauth_sdk" ]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
group("fuzztest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":CheckAccessFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "checkAccessToGroup_fuzzer.h"
|
||||
#include "checkaccess_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoCheckAccessToGroup(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "checkAccessToGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "checkaccess_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+4
-2
@@ -17,13 +17,15 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("CreateGroupFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file =
|
||||
"//base/security/deviceauth/test/fuzztest/group_manage/creategroup_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "createGroup_fuzzer.cpp" ]
|
||||
sources = [ "creategroup_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "createGroup_fuzzer.h"
|
||||
#include "creategroup_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoCreateGroup(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "createGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "creategroup_fuzzer"
|
||||
#endif
|
||||
+4
-2
@@ -17,13 +17,15 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("DeleteGroupFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file =
|
||||
"//base/security/deviceauth/test/fuzztest/group_manage/deletegroup_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "deleteGroup_fuzzer.cpp" ]
|
||||
sources = [ "deletegroup_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "deleteGroup_fuzzer.h"
|
||||
#include "deletegroup_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoDeleteGroup(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "deleteGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "deletegroup_fuzzer"
|
||||
#endif
|
||||
+5
-4
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("CheckAccessToGroupFuzzTest") {
|
||||
ohos_fuzztest("DeleteMemberFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
include_dirs = inc_path
|
||||
sources = [ "checkAccessToGroup_fuzzer.cpp" ]
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/deletemember_fuzzer"
|
||||
sources = [ "deletemember_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -44,7 +45,7 @@ group("fuzztest") {
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":CheckAccessToGroupFuzzTest",
|
||||
":DeleteMemberFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "deleteMemberFromGroup_fuzzer.h"
|
||||
#include "deletemember_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoDeleteMember(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "deleteMemberFromGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "deletemember_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetDeviceInfoByIdFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getdeviceinfobyid_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getDeviceInfoById_fuzzer.cpp" ]
|
||||
sources = [ "getdeviceinfobyid_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getDeviceInfoById_fuzzer.h"
|
||||
#include "getdeviceinfobyid_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetDeviceInfoById(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getDeviceInfoById_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getdeviceinfobyid_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetGroupInfoFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getgroupinfo_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getGroupInfo_fuzzer.cpp" ]
|
||||
sources = [ "getgroupinfo_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getGroupInfo_fuzzer.h"
|
||||
#include "getgroupinfo_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetGroupInfo(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getGroupInfo_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getgroupinfo_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetGroupInfoByIdFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getgroupinfobyid_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getGroupInfoById_fuzzer.cpp" ]
|
||||
sources = [ "getgroupinfobyid_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getGroupInfoById_fuzzer.h"
|
||||
#include "getgroupinfobyid_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetGroupInfoById(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getGroupInfoById_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getgroupinfobyid_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetJoinedGroupsFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getjoinedgroups_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getJoinedGroups_fuzzer.cpp" ]
|
||||
sources = [ "getjoinedgroups_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getJoinedGroups_fuzzer.h"
|
||||
#include "getjoinedgroups_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetJoinedGroups(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getJoinedGroups_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getjoinedgroups_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetPkgInfoListFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getpkinfolist_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getPkInfoList_fuzzer.cpp" ]
|
||||
sources = [ "getpkinfolist_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getPkInfoList_fuzzer.h"
|
||||
#include "getpkinfolist_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetPkgInfoList(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getPkInfoList_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getpkinfolist_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetRegisterInfoFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getregisterinfo_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getRegisterInfo_fuzzer.cpp" ]
|
||||
sources = [ "getregisterinfo_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getRegisterInfo_fuzzer.h"
|
||||
#include "getregisterinfo_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetRegisterInfo(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getRegisterInfo_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getregisterinfo_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetRelatedGroupsFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/getrelatedgroups_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getRelatedGroups_fuzzer.cpp" ]
|
||||
sources = [ "getrelatedgroups_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getRelatedGroups_fuzzer.h"
|
||||
#include "getrelatedgroups_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetRelatedGroups(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getRelatedGroups_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "getrelatedgroups_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("GetTrustedDevicesFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/gettrusteddevices_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "getTrustedDevices_fuzzer.cpp" ]
|
||||
sources = [ "gettrusteddevices_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "getTrustedDevices_fuzzer.h"
|
||||
#include "gettrusteddevices_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoGetTrustedDevices(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "getTrustedDevices_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "gettrusteddevices_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("IsDeviceInGroupFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/isdeviceingroup_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "isDeviceInGroup_fuzzer.cpp" ]
|
||||
sources = [ "isdeviceingroup_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "isDeviceInGroup_fuzzer.h"
|
||||
#include "isdeviceingroup_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoIsDeviceInGroup(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "isDeviceInGroup_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "isdeviceingroup_fuzzer"
|
||||
#endif
|
||||
+3
-2
@@ -17,13 +17,14 @@ import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/deviceauth_fuzz_test"
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("ProcessBindDataFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/processbinddata_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "processData_fuzzer.cpp" ]
|
||||
sources = [ "processbinddata_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "processData_fuzzer.h"
|
||||
#include "processbinddata_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoProcessData(const uint8_t* data, size_t size)
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "gm_processData_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "processbinddata_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,51 @@
|
||||
# Copyright (c) 2022 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.
|
||||
|
||||
import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("RegisterCallbackFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/registercallback_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "registercallback_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-DHILOG_ENABLE",
|
||||
]
|
||||
if (target_cpu == "arm") {
|
||||
cflags += [ "-DBINDER_IPC_32BIT" ]
|
||||
}
|
||||
|
||||
deps = [ "//base/security/deviceauth/services:deviceauth_sdk" ]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
group("fuzztest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":RegisterCallbackFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "regCallback_fuzzer.h"
|
||||
#include "registercallback_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
void OnError(int64_t requestId, int operationCode, int errorCode, const char *errorReturn) {}
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "regCallback_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "registercallback_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,51 @@
|
||||
# Copyright (c) 2022 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.
|
||||
|
||||
import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("RegisterDataChangeListenerFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/registerdatachangelistener_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "registerdatachangelistener_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-DHILOG_ENABLE",
|
||||
]
|
||||
if (target_cpu == "arm") {
|
||||
cflags += [ "-DBINDER_IPC_32BIT" ]
|
||||
}
|
||||
|
||||
deps = [ "//base/security/deviceauth/services:deviceauth_sdk" ]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
group("fuzztest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":RegisterDataChangeListenerFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "regDataChangeListener_fuzzer.h"
|
||||
#include "registerdatachangelistener_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
void onGroupCreated(const char *groupInfo) {}
|
||||
+1
-1
@@ -21,5 +21,5 @@
|
||||
#include <cstdint>
|
||||
#include <cstddef>
|
||||
|
||||
#define FUZZ_PROJECT_NAME "regDataChangeListener_fuzzer"
|
||||
#define FUZZ_PROJECT_NAME "registerdatachangelistener_fuzzer"
|
||||
#endif
|
||||
@@ -0,0 +1,51 @@
|
||||
# Copyright (c) 2022 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.
|
||||
|
||||
import("//base/security/deviceauth/services/deviceauth.gni")
|
||||
|
||||
#####################hydra-fuzz###################
|
||||
import("//build/config/features.gni")
|
||||
import("//build/ohos.gni")
|
||||
import("//build/test.gni")
|
||||
module_output_path = "deviceauth_standard/group_manage"
|
||||
|
||||
##############################fuzztest##########################################
|
||||
ohos_fuzztest("UnregisterCallbackFuzzTest") {
|
||||
module_out_path = module_output_path
|
||||
fuzz_config_file = "//base/security/deviceauth/test/fuzztest/group_manage/unregistercallback_fuzzer"
|
||||
include_dirs = inc_path
|
||||
sources = [ "unregistercallback_fuzzer.cpp" ]
|
||||
cflags = [
|
||||
"-g",
|
||||
"-O0",
|
||||
"-Wno-unused-variable",
|
||||
"-fno-omit-frame-pointer",
|
||||
"-DHILOG_ENABLE",
|
||||
]
|
||||
if (target_cpu == "arm") {
|
||||
cflags += [ "-DBINDER_IPC_32BIT" ]
|
||||
}
|
||||
|
||||
deps = [ "//base/security/deviceauth/services:deviceauth_sdk" ]
|
||||
}
|
||||
|
||||
###############################################################################
|
||||
group("fuzztest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
deps += [
|
||||
# deps file
|
||||
":UnregisterCallbackFuzzTest",
|
||||
]
|
||||
}
|
||||
###############################################################################
|
||||
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
+1
-1
@@ -13,7 +13,7 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "unRegCallback_fuzzer.h"
|
||||
#include "unregistercallback_fuzzer.h"
|
||||
|
||||
namespace OHOS {
|
||||
bool FuzzDoUnregisterCallback(const uint8_t* data, size_t size)
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user