From 4130f9a7619f92853e910285f962b406f719ebb7 Mon Sep 17 00:00:00 2001 From: xionglei6 Date: Thu, 14 Apr 2022 16:54:02 +0800 Subject: [PATCH] fix: fuzz test code Signed-off-by: xionglei6 --- bundle.json | 3 +- test/fuzztest/BUILD.gn | 128 ++++++++++-------- test/fuzztest/corpus | 16 +++ test/fuzztest/doreboot_fuzzer/corpus/init | 16 +++ .../doreboot_fuzzer.cpp} | 4 +- .../doreboot_fuzzer.h} | 2 +- test/fuzztest/doreboot_fuzzer/project.xml | 25 ++++ .../getcontrolfile_fuzzer/corpus/init | 16 +++ .../getcontrolfile_fuzzer.cpp} | 4 +- .../getcontrolfile_fuzzer.h} | 2 +- .../getcontrolfile_fuzzer/project.xml | 25 ++++ .../getcontrolsocket_fuzzer/corpus/init | 16 +++ .../getcontrolsocket_fuzzer.cpp} | 4 +- .../getcontrolsocket_fuzzer.h} | 2 +- .../getcontrolsocket_fuzzer/project.xml | 25 ++++ .../fuzztest/mountallfstab_fuzzer/corpus/init | 16 +++ .../mountallfstab_fuzzer.cpp} | 4 +- .../mountallfstab_fuzzer.h} | 2 +- .../fuzztest/mountallfstab_fuzzer/project.xml | 25 ++++ test/fuzztest/project.xml | 4 +- .../fuzztest/readfileindir_fuzzer/corpus/init | 16 +++ .../fuzztest/readfileindir_fuzzer/project.xml | 25 ++++ .../readfileindir_fuzzer.cpp} | 4 +- .../readfileindir_fuzzer.h} | 2 +- .../servicecontrolstart_fuzzer/corpus/init | 16 +++ .../servicecontrolstart_fuzzer/project.xml | 25 ++++ .../servicecontrolstart_fuzzer.cpp} | 4 +- .../servicecontrolstart_fuzzer.h} | 2 +- .../servicecontrolstop_fuzzer/corpus/init | 16 +++ .../servicecontrolstop_fuzzer/project.xml | 25 ++++ .../servicecontrolstop_fuzzer.cpp} | 4 +- .../servicecontrolstop_fuzzer.h} | 2 +- .../systemdumpparameters_fuzzer/corpus/init | 16 +++ .../systemdumpparameters_fuzzer/project.xml | 25 ++++ .../systemdumpparameters_fuzzer.cpp} | 4 +- .../systemdumpparameters_fuzzer.h} | 2 +- .../systemfindparameter_fuzzer/corpus/init | 16 +++ .../systemfindparameter_fuzzer/project.xml | 25 ++++ .../systemfindparameter_fuzzer.cpp} | 4 +- .../systemfindparameter_fuzzer.h} | 2 +- .../systemgetparameter_fuzzer/corpus/init | 16 +++ .../systemgetparameter_fuzzer/project.xml | 25 ++++ .../systemgetparameter_fuzzer.cpp} | 4 +- .../systemgetparameter_fuzzer.h} | 2 +- .../corpus/init | 16 +++ .../project.xml | 25 ++++ .../systemgetparametercommitid_fuzzer.cpp} | 4 +- .../systemgetparametercommitid_fuzzer.h} | 2 +- .../systemgetparametername_fuzzer/corpus/init | 16 +++ .../systemgetparametername_fuzzer/project.xml | 25 ++++ .../systemgetparametername_fuzzer.cpp} | 4 +- .../systemgetparametername_fuzzer.h} | 2 +- .../corpus/init | 16 +++ .../project.xml | 25 ++++ .../systemgetparametervalue_fuzzer.cpp} | 4 +- .../systemgetparametervalue_fuzzer.h} | 2 +- .../systemsetparameter_fuzzer/corpus/init | 16 +++ .../systemsetparameter_fuzzer/project.xml | 25 ++++ .../systemsetparameter_fuzzer.cpp} | 4 +- .../systemsetparameter_fuzzer.h} | 2 +- .../corpus/init | 16 +++ .../project.xml | 25 ++++ .../systemtraversalparameter_fuzzer.cpp} | 4 +- .../systemtraversalparameter_fuzzer.h} | 2 +- .../systemwaitparameter_fuzzer/corpus/init | 16 +++ .../systemwaitparameter_fuzzer/project.xml | 25 ++++ .../systemwaitparameter_fuzzer.cpp} | 4 +- .../systemwaitparameter_fuzzer.h} | 2 +- .../systemwatchparameter_fuzzer/corpus/init | 16 +++ .../systemwatchparameter_fuzzer/project.xml | 25 ++++ .../systemwatchparameter_fuzzer.cpp} | 4 +- .../systemwatchparameter_fuzzer.h} | 2 +- .../umountallfstab_fuzzer/corpus/init | 16 +++ .../umountallfstab_fuzzer/project.xml | 25 ++++ .../umountallfstab_fuzzer.cpp} | 4 +- .../umountallfstab_fuzzer.h} | 2 +- test/fuzztest/utils/fuzz_utils.cpp | 2 +- test/fuzztest/utils/include/fuzz_utils.h | 2 +- 78 files changed, 887 insertions(+), 114 deletions(-) create mode 100644 test/fuzztest/corpus create mode 100644 test/fuzztest/doreboot_fuzzer/corpus/init rename test/fuzztest/{test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.cpp => doreboot_fuzzer/doreboot_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.h => doreboot_fuzzer/doreboot_fuzzer.h} (93%) create mode 100644 test/fuzztest/doreboot_fuzzer/project.xml create mode 100644 test/fuzztest/getcontrolfile_fuzzer/corpus/init rename test/fuzztest/{test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.cpp => getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.h => getcontrolfile_fuzzer/getcontrolfile_fuzzer.h} (93%) create mode 100644 test/fuzztest/getcontrolfile_fuzzer/project.xml create mode 100644 test/fuzztest/getcontrolsocket_fuzzer/corpus/init rename test/fuzztest/{test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.cpp => getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.h => getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h} (93%) create mode 100644 test/fuzztest/getcontrolsocket_fuzzer/project.xml create mode 100644 test/fuzztest/mountallfstab_fuzzer/corpus/init rename test/fuzztest/{test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.cpp => mountallfstab_fuzzer/mountallfstab_fuzzer.cpp} (94%) rename test/fuzztest/{test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.h => mountallfstab_fuzzer/mountallfstab_fuzzer.h} (93%) create mode 100644 test/fuzztest/mountallfstab_fuzzer/project.xml create mode 100644 test/fuzztest/readfileindir_fuzzer/corpus/init create mode 100644 test/fuzztest/readfileindir_fuzzer/project.xml rename test/fuzztest/{test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.cpp => readfileindir_fuzzer/readfileindir_fuzzer.cpp} (95%) rename test/fuzztest/{test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.h => readfileindir_fuzzer/readfileindir_fuzzer.h} (93%) create mode 100644 test/fuzztest/servicecontrolstart_fuzzer/corpus/init create mode 100644 test/fuzztest/servicecontrolstart_fuzzer/project.xml rename test/fuzztest/{test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.cpp => servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.h => servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h} (93%) create mode 100644 test/fuzztest/servicecontrolstop_fuzzer/corpus/init create mode 100644 test/fuzztest/servicecontrolstop_fuzzer/project.xml rename test/fuzztest/{test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.cpp => servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.h => servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemdumpparameters_fuzzer/corpus/init create mode 100644 test/fuzztest/systemdumpparameters_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.cpp => systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp} (90%) rename test/fuzztest/{test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.h => systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemfindparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemfindparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.cpp => systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.h => systemfindparameter_fuzzer/systemfindparameter_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemgetparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemgetparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.cpp => systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp} (92%) rename test/fuzztest/{test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.h => systemgetparameter_fuzzer/systemgetparameter_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init create mode 100644 test/fuzztest/systemgetparametercommitId_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.cpp => systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.h => systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemgetparametername_fuzzer/corpus/init create mode 100644 test/fuzztest/systemgetparametername_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.cpp => systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.h => systemgetparametername_fuzzer/systemgetparametername_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemgetparametervalue_fuzzer/corpus/init create mode 100644 test/fuzztest/systemgetparametervalue_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.cpp => systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.h => systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemsetparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemsetparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.cpp => systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.h => systemsetparameter_fuzzer/systemsetparameter_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemtraversalparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemtraversalparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.cpp => systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp} (95%) rename test/fuzztest/{test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.h => systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.h} (94%) create mode 100644 test/fuzztest/systemwaitparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemwaitparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.cpp => systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp} (91%) rename test/fuzztest/{test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.h => systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h} (93%) create mode 100644 test/fuzztest/systemwatchparameter_fuzzer/corpus/init create mode 100644 test/fuzztest/systemwatchparameter_fuzzer/project.xml rename test/fuzztest/{test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.cpp => systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp} (92%) rename test/fuzztest/{test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.h => systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h} (93%) create mode 100644 test/fuzztest/umountallfstab_fuzzer/corpus/init create mode 100644 test/fuzztest/umountallfstab_fuzzer/project.xml rename test/fuzztest/{test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.cpp => umountallfstab_fuzzer/umountallfstab_fuzzer.cpp} (94%) rename test/fuzztest/{test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.h => umountallfstab_fuzzer/umountallfstab_fuzzer.h} (93%) diff --git a/bundle.json b/bundle.json index 3eef08f2..a82c4aad 100644 --- a/bundle.json +++ b/bundle.json @@ -79,7 +79,8 @@ } ], "test": [ - "//base/startup/init_lite/test/unittest:init_test" + "//base/startup/init_lite/test/unittest:init_test", + "//base/startup/init_lite/test/fuzztest:fuzztest" ] } } diff --git a/test/fuzztest/BUILD.gn b/test/fuzztest/BUILD.gn index a9736f67..03b33ade 100644 --- a/test/fuzztest/BUILD.gn +++ b/test/fuzztest/BUILD.gn @@ -1,4 +1,4 @@ -# Copyright (c) 2021 Huawei Device Co., Ltd. +# Copyright (c) 2021-2022-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 @@ -27,8 +27,9 @@ ohos_static_library("libfuzz_utils") { } ##############################fuzztest########################################## -ohos_fuzztest("test_startup_DoRebootFuzzTest") { +ohos_fuzztest("DoRebootFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/doreboot_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -48,13 +49,14 @@ ohos_fuzztest("test_startup_DoRebootFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.cpp" ] + sources = [ "doreboot_fuzzer/doreboot_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_GetControlFileFuzzTest") { +ohos_fuzztest("GetControlFileFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/getcontrolfile_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -75,14 +77,15 @@ ohos_fuzztest("test_startup_GetControlFileFuzzTest") { "-fno-omit-frame-pointer", ] sources = [ - "test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.cpp", + "getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp", ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_GetControlSocketFuzzTest") { +ohos_fuzztest("GetControlSocketFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/getcontrolsocket_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -101,13 +104,14 @@ ohos_fuzztest("test_startup_GetControlSocketFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.cpp" ] + sources = [ "getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_MountAllFstabFuzzTest") { +ohos_fuzztest("MountAllFstabFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/mountallfstab_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -129,14 +133,15 @@ ohos_fuzztest("test_startup_MountAllFstabFuzzTest") { "-fno-omit-frame-pointer", ] sources = [ - "test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.cpp", + "mountallfstab_fuzzer/mountallfstab_fuzzer.cpp", ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_ReadFileInDirFuzzTest") { +ohos_fuzztest("ReadFileInDirFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/readfileindir_fuzzer" include_dirs = [ "//base/startup/init_lite/services/init/include", @@ -157,14 +162,15 @@ ohos_fuzztest("test_startup_ReadFileInDirFuzzTest") { "-fno-omit-frame-pointer", ] sources = [ - "test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.cpp", + "readfileindir_fuzzer/readfileindir_fuzzer.cpp", ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_ServiceControlStartFuzzTest") { +ohos_fuzztest("ServiceControlStartFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/servicecontrolstart_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -182,13 +188,14 @@ ohos_fuzztest("test_startup_ServiceControlStartFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.cpp" ] + sources = [ "servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_ServiceControlStopFuzzTest") { +ohos_fuzztest("ServiceControlStopFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/servicecontrolstop_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -206,13 +213,14 @@ ohos_fuzztest("test_startup_ServiceControlStopFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.cpp" ] + sources = [ "servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemDumpParametersFuzzTest") { +ohos_fuzztest("SystemDumpParametersFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemdumpparameters_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -233,13 +241,14 @@ ohos_fuzztest("test_startup_SystemDumpParametersFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.cpp" ] + sources = [ "systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemFindParameterFuzzTest") { +ohos_fuzztest("SystemFindParameterFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemfindparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -259,13 +268,14 @@ ohos_fuzztest("test_startup_SystemFindParameterFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.cpp" ] + sources = [ "systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemGetParameterFuzzTest") { +ohos_fuzztest("SystemGetParameterFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemgetparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -285,13 +295,14 @@ ohos_fuzztest("test_startup_SystemGetParameterFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.cpp" ] + sources = [ "systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemGetParameterCommitIdFuzzTest") { +ohos_fuzztest("SystemGetParameterCommitIdFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemgetparametercommitId_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -311,13 +322,14 @@ ohos_fuzztest("test_startup_SystemGetParameterCommitIdFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.cpp" ] + sources = [ "systemgetparametercommitid_fuzzer/systemgetparametercommitid_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemGetParameterNameFuzzTest") { +ohos_fuzztest("SystemGetParameterNameFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemgetparametername_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -337,13 +349,14 @@ ohos_fuzztest("test_startup_SystemGetParameterNameFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.cpp" ] + sources = [ "systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemGetParameterValueFuzzTest") { +ohos_fuzztest("SystemGetParameterValueFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemgetparametervalue_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -363,13 +376,14 @@ ohos_fuzztest("test_startup_SystemGetParameterValueFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.cpp" ] + sources = [ "systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemSetParameterFuzztest") { +ohos_fuzztest("SystemSetParameterFuzztest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemsetparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -389,13 +403,14 @@ ohos_fuzztest("test_startup_SystemSetParameterFuzztest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.cpp" ] + sources = [ "systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemTraversalParameterFuzztest") { +ohos_fuzztest("SystemTraversalParameterFuzztest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemtraversalparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -418,13 +433,14 @@ ohos_fuzztest("test_startup_SystemTraversalParameterFuzztest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.cpp" ] + sources = [ "systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemWaitParameterFuzzTest") { +ohos_fuzztest("SystemWaitParameterFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemwaitparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -444,13 +460,14 @@ ohos_fuzztest("test_startup_SystemWaitParameterFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.cpp" ] + sources = [ "systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_SystemWatchParameterFuzzTest") { +ohos_fuzztest("SystemWatchParameterFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/systemwatchparameter_fuzzer" include_dirs = [ "//base/startup/init_lite/services/include/param", @@ -479,13 +496,14 @@ ohos_fuzztest("test_startup_SystemWatchParameterFuzzTest") { "-Wno-unused-variable", "-fno-omit-frame-pointer", ] - sources = [ "test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.cpp" ] + sources = [ "systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp" ] defines = [ "STARTUP_INIT_TEST" ] } -ohos_fuzztest("test_startup_UmountAllFstabFuzzTest") { +ohos_fuzztest("UmountAllFstabFuzzTest") { module_out_path = module_output_path + fuzz_config_file = "//base/startup/init_lite/test/fuzztest/umountallfstab_fuzzer" include_dirs = [ "//base/startup/init_lite/interfaces/innerkits/include", @@ -507,7 +525,7 @@ ohos_fuzztest("test_startup_UmountAllFstabFuzzTest") { "-fno-omit-frame-pointer", ] sources = [ - "test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.cpp", + "umountallfstab_fuzzer/umountallfstab_fuzzer.cpp", ] defines = [ "STARTUP_INIT_TEST" ] @@ -519,24 +537,24 @@ group("fuzztest") { deps = [] deps += [ # deps file - ":test_startup_DoRebootFuzzTest", - ":test_startup_GetControlFileFuzzTest", - ":test_startup_GetControlSocketFuzzTest", - ":test_startup_MountAllFstabFuzzTest", - ":test_startup_ReadFileInDirFuzzTest", - ":test_startup_ServiceControlStartFuzzTest", - ":test_startup_ServiceControlStopFuzzTest", - ":test_startup_SystemDumpParametersFuzzTest", - ":test_startup_SystemFindParameterFuzzTest", - ":test_startup_SystemGetParameterCommitIdFuzzTest", - ":test_startup_SystemGetParameterFuzzTest", - ":test_startup_SystemGetParameterNameFuzzTest", - ":test_startup_SystemGetParameterValueFuzzTest", - ":test_startup_SystemSetParameterFuzztest", - ":test_startup_SystemTraversalParameterFuzztest", - ":test_startup_SystemWaitParameterFuzzTest", - ":test_startup_SystemWatchParameterFuzzTest", - ":test_startup_UmountAllFstabFuzzTest", + ":DoRebootFuzzTest", + ":GetControlFileFuzzTest", + ":GetControlSocketFuzzTest", + ":MountAllFstabFuzzTest", + ":ReadFileInDirFuzzTest", + ":ServiceControlStartFuzzTest", + ":ServiceControlStopFuzzTest", + ":SystemDumpParametersFuzzTest", + ":SystemFindParameterFuzzTest", + ":SystemGetParameterCommitIdFuzzTest", + ":SystemGetParameterFuzzTest", + ":SystemGetParameterNameFuzzTest", + ":SystemGetParameterValueFuzzTest", + ":SystemSetParameterFuzztest", + ":SystemTraversalParameterFuzztest", + ":SystemWaitParameterFuzzTest", + ":SystemWatchParameterFuzzTest", + ":UmountAllFstabFuzzTest", ] } ############################################################################### diff --git a/test/fuzztest/corpus b/test/fuzztest/corpus new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/corpus @@ -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 \ No newline at end of file diff --git a/test/fuzztest/doreboot_fuzzer/corpus/init b/test/fuzztest/doreboot_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/doreboot_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.cpp b/test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.cpp rename to test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.cpp index b814a5f6..b7bde6de 100644 --- a/test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.cpp +++ b/test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_DoReboot_fuzzer.h" +#include "doreboot_fuzzer.h" #include "init_reboot.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.h b/test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.h rename to test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.h index 17fedd1a..987ccbd7 100644 --- a/test/fuzztest/test_startup_DoReboot_fuzzer/test_startup_DoReboot_fuzzer.h +++ b/test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/doreboot_fuzzer/project.xml b/test/fuzztest/doreboot_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/doreboot_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/getcontrolfile_fuzzer/corpus/init b/test/fuzztest/getcontrolfile_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/getcontrolfile_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.cpp b/test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.cpp rename to test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp index 300f0ac3..7a31bb59 100644 --- a/test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.cpp +++ b/test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_GetControlFile_fuzzer.h" +#include "getcontrolfile_fuzzer.h" #include "init_file.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.h b/test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.h rename to test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.h index 8308657e..da190aee 100644 --- a/test/fuzztest/test_startup_GetControlFile_fuzzer/test_startup_GetControlFile_fuzzer.h +++ b/test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/getcontrolfile_fuzzer/project.xml b/test/fuzztest/getcontrolfile_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/getcontrolfile_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/getcontrolsocket_fuzzer/corpus/init b/test/fuzztest/getcontrolsocket_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/getcontrolsocket_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.cpp b/test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.cpp rename to test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp index 35380e7e..273c73da 100644 --- a/test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.cpp +++ b/test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_GetControlSocket_fuzzer.h" +#include "getcontrolsocket_fuzzer.h" #include "init_socket.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.h b/test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.h rename to test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h index 046cdda2..358f9edd 100644 --- a/test/fuzztest/test_startup_GetControlSocket_fuzzer/test_startup_GetControlSocket_fuzzer.h +++ b/test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/getcontrolsocket_fuzzer/project.xml b/test/fuzztest/getcontrolsocket_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/getcontrolsocket_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/mountallfstab_fuzzer/corpus/init b/test/fuzztest/mountallfstab_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/mountallfstab_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.cpp b/test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.cpp similarity index 94% rename from test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.cpp rename to test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.cpp index bdb2be93..21b0a82d 100644 --- a/test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.cpp +++ b/test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_MountAllFstab_fuzzer.h" +#include "mountallfstab_fuzzer.h" #include #include "fs_manager/fs_manager.h" diff --git a/test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.h b/test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.h rename to test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.h index 6c9ee9ce..5bae5047 100644 --- a/test/fuzztest/test_startup_MountAllFstab_fuzzer/test_startup_MountAllFstab_fuzzer.h +++ b/test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/mountallfstab_fuzzer/project.xml b/test/fuzztest/mountallfstab_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/mountallfstab_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/project.xml b/test/fuzztest/project.xml index ee0011e1..eb524944 100644 --- a/test/fuzztest/project.xml +++ b/test/fuzztest/project.xml @@ -1,5 +1,5 @@ - 100 - 300 + 30 2048 diff --git a/test/fuzztest/readfileindir_fuzzer/corpus/init b/test/fuzztest/readfileindir_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/readfileindir_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/readfileindir_fuzzer/project.xml b/test/fuzztest/readfileindir_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/readfileindir_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.cpp b/test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.cpp similarity index 95% rename from test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.cpp rename to test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.cpp index 1da8eefd..5d355b55 100644 --- a/test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.cpp +++ b/test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_ReadFileInDir_fuzzer.h" +#include "readfileindir_fuzzer.h" #include #include diff --git a/test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.h b/test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.h rename to test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.h index abd13a6a..86cfe1ff 100644 --- a/test/fuzztest/test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInDir_fuzzer.h +++ b/test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/servicecontrolstart_fuzzer/corpus/init b/test/fuzztest/servicecontrolstart_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/servicecontrolstart_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/servicecontrolstart_fuzzer/project.xml b/test/fuzztest/servicecontrolstart_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/servicecontrolstart_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.cpp b/test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.cpp rename to test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp index 03acfe7d..b76b66f9 100644 --- a/test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.cpp +++ b/test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_ServiceControlStart_fuzzer.h" +#include "servicecontrolstart_fuzzer.h" #include "service_control.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.h b/test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.h rename to test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h index 1194742a..2e968e67 100644 --- a/test/fuzztest/test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlStart_fuzzer.h +++ b/test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/servicecontrolstop_fuzzer/corpus/init b/test/fuzztest/servicecontrolstop_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/servicecontrolstop_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/servicecontrolstop_fuzzer/project.xml b/test/fuzztest/servicecontrolstop_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/servicecontrolstop_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.cpp b/test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.cpp rename to test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp index 10e52956..e723770b 100644 --- a/test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.cpp +++ b/test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_ServiceControlStop_fuzzer.h" +#include "servicecontrolstop_fuzzer.h" #include "service_control.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.h b/test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.h rename to test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h index 2b666b20..4be8a0b1 100644 --- a/test/fuzztest/test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlStop_fuzzer.h +++ b/test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemdumpparameters_fuzzer/corpus/init b/test/fuzztest/systemdumpparameters_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemdumpparameters_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemdumpparameters_fuzzer/project.xml b/test/fuzztest/systemdumpparameters_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemdumpparameters_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.cpp b/test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp similarity index 90% rename from test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.cpp rename to test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp index 1304b720..1f440a63 100644 --- a/test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.cpp +++ b/test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemDumpParameters_fuzzer.h" +#include "systemdumpparameters_fuzzer.h" #include "sys_param.h" #include "fuzz_utils.h" diff --git a/test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.h b/test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.h rename to test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h index cdffefaa..f4fd1149 100644 --- a/test/fuzztest/test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpParameters_fuzzer.h +++ b/test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemfindparameter_fuzzer/corpus/init b/test/fuzztest/systemfindparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemfindparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemfindparameter_fuzzer/project.xml b/test/fuzztest/systemfindparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemfindparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.cpp b/test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.cpp rename to test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp index ca031599..7809c01c 100644 --- a/test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.cpp +++ b/test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemFindParameter_fuzzer.h" +#include "systemfindparameter_fuzzer.h" #include "sys_param.h" static ParamHandle handle; diff --git a/test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.h b/test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.h rename to test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.h index 68b57cc8..efaca053 100644 --- a/test/fuzztest/test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindParameter_fuzzer.h +++ b/test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemgetparameter_fuzzer/corpus/init b/test/fuzztest/systemgetparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemgetparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemgetparameter_fuzzer/project.xml b/test/fuzztest/systemgetparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemgetparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.cpp b/test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp similarity index 92% rename from test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.cpp rename to test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp index 06538c33..903137ac 100644 --- a/test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.cpp +++ b/test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemGetParameter_fuzzer.h" +#include "systemgetparameter_fuzzer.h" #include #include "sys_param.h" diff --git a/test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.h b/test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.h rename to test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.h index 37ff0f69..f86f369a 100644 --- a/test/fuzztest/test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetParameter_fuzzer.h +++ b/test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init b/test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemgetparametercommitId_fuzzer/project.xml b/test/fuzztest/systemgetparametercommitId_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemgetparametercommitId_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.cpp b/test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.cpp rename to test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp index afaf5609..37a2d272 100644 --- a/test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.cpp +++ b/test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemGetParameterCommitId_fuzzer.h" +#include "systemgetparametercommitid_fuzzer.h" #include "sys_param.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.h b/test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.h rename to test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h index 281a241d..4dcbe384 100644 --- a/test/fuzztest/test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitId_fuzzer.h +++ b/test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemgetparametername_fuzzer/corpus/init b/test/fuzztest/systemgetparametername_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemgetparametername_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemgetparametername_fuzzer/project.xml b/test/fuzztest/systemgetparametername_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemgetparametername_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.cpp b/test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.cpp rename to test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp index 88ccd1ea..48468dcc 100644 --- a/test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.cpp +++ b/test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemGetParameterName_fuzzer.h" +#include "systemgetparametername_fuzzer.h" #include "sys_param.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.h b/test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.h rename to test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.h index 0e10680a..6c9a62a4 100644 --- a/test/fuzztest/test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterName_fuzzer.h +++ b/test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemgetparametervalue_fuzzer/corpus/init b/test/fuzztest/systemgetparametervalue_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemgetparametervalue_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemgetparametervalue_fuzzer/project.xml b/test/fuzztest/systemgetparametervalue_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemgetparametervalue_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.cpp b/test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.cpp rename to test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp index b94227a1..42d382fb 100644 --- a/test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.cpp +++ b/test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemGetParameterValue_fuzzer.h" +#include "systemgetparametervalue_fuzzer.h" #include "sys_param.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.h b/test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.h rename to test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.h index 243b7b0d..0aa2736f 100644 --- a/test/fuzztest/test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterValue_fuzzer.h +++ b/test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemsetparameter_fuzzer/corpus/init b/test/fuzztest/systemsetparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemsetparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemsetparameter_fuzzer/project.xml b/test/fuzztest/systemsetparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemsetparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.cpp b/test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.cpp rename to test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp index 85b6fd13..8370ae59 100644 --- a/test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.cpp +++ b/test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemSetParameter_fuzzer.h" +#include "systemsetparameter_fuzzer.h" #include "sys_param.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.h b/test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.h rename to test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.h index 844e3115..977c3be8 100644 --- a/test/fuzztest/test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetParameter_fuzzer.h +++ b/test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemtraversalparameter_fuzzer/corpus/init b/test/fuzztest/systemtraversalparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemtraversalparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemtraversalparameter_fuzzer/project.xml b/test/fuzztest/systemtraversalparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemtraversalparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.cpp b/test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp similarity index 95% rename from test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.cpp rename to test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp index a23dbb06..44319e2e 100644 --- a/test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.cpp +++ b/test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemTraversalParameter_fuzzer.h" +#include "systemtraversalparameter_fuzzer.h" #include "fuzz_utils.h" #include "init.h" diff --git a/test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.h b/test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.h similarity index 94% rename from test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.h rename to test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.h index 88085ce4..b5ab5749 100644 --- a/test/fuzztest/test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalParameter_fuzzer.h +++ b/test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemwaitparameter_fuzzer/corpus/init b/test/fuzztest/systemwaitparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemwaitparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemwaitparameter_fuzzer/project.xml b/test/fuzztest/systemwaitparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemwaitparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.cpp b/test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp similarity index 91% rename from test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.cpp rename to test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp index d76166e2..b85acb13 100644 --- a/test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.cpp +++ b/test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemWaitParameter_fuzzer.h" +#include "systemwaitparameter_fuzzer.h" #include "sys_param.h" namespace OHOS { diff --git a/test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.h b/test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.h rename to test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h index 3e968bee..96bb7fcf 100644 --- a/test/fuzztest/test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitParameter_fuzzer.h +++ b/test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/systemwatchparameter_fuzzer/corpus/init b/test/fuzztest/systemwatchparameter_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/systemwatchparameter_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/systemwatchparameter_fuzzer/project.xml b/test/fuzztest/systemwatchparameter_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/systemwatchparameter_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.cpp b/test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp similarity index 92% rename from test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.cpp rename to test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp index 4c8a2a10..173e03be 100644 --- a/test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.cpp +++ b/test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_SystemWatchParameter_fuzzer.h" +#include "systemwatchparameter_fuzzer.h" #include "init.h" #include "sys_param.h" diff --git a/test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.h b/test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.h rename to test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h index 4f2815f7..89628e8c 100644 --- a/test/fuzztest/test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchParameter_fuzzer.h +++ b/test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/umountallfstab_fuzzer/corpus/init b/test/fuzztest/umountallfstab_fuzzer/corpus/init new file mode 100644 index 00000000..8eb5a7d6 --- /dev/null +++ b/test/fuzztest/umountallfstab_fuzzer/corpus/init @@ -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 \ No newline at end of file diff --git a/test/fuzztest/umountallfstab_fuzzer/project.xml b/test/fuzztest/umountallfstab_fuzzer/project.xml new file mode 100644 index 00000000..428e0f27 --- /dev/null +++ b/test/fuzztest/umountallfstab_fuzzer/project.xml @@ -0,0 +1,25 @@ + + + + + + 100 + + 30 + + 2048 + + diff --git a/test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.cpp b/test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.cpp similarity index 94% rename from test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.cpp rename to test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.cpp index 98ab1422..b8c281c2 100644 --- a/test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.cpp +++ b/test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 @@ -13,7 +13,7 @@ * limitations under the License. */ -#include "test_startup_UmountAllFstab_fuzzer.h" +#include "umountallfstab_fuzzer.h" #include #include "fs_manager/fs_manager.h" diff --git a/test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.h b/test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.h similarity index 93% rename from test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.h rename to test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.h index 299788b0..9617f1f3 100644 --- a/test/fuzztest/test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllFstab_fuzzer.h +++ b/test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/utils/fuzz_utils.cpp b/test/fuzztest/utils/fuzz_utils.cpp index 04de9ad3..5470da63 100644 --- a/test/fuzztest/utils/fuzz_utils.cpp +++ b/test/fuzztest/utils/fuzz_utils.cpp @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 diff --git a/test/fuzztest/utils/include/fuzz_utils.h b/test/fuzztest/utils/include/fuzz_utils.h index de2be014..237ced43 100644 --- a/test/fuzztest/utils/include/fuzz_utils.h +++ b/test/fuzztest/utils/include/fuzz_utils.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2021 Huawei Device Co., Ltd. + * Copyright (c) 2021-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 -- GitLab