diff --git a/bundle.json b/bundle.json index 3eef08f20b870adc8e4b5c558e2d35b9d00a1bdf..a82c4aadf94a1a44661fb365911772198c78d17b 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 a9736f675742cd7621edb9b42baede0592c39b25..03b33ade13c6960a883f0a39cf5a40eb8a765324 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 b814a5f692199315bc1e101547c519f2be67a9fd..b7bde6de76f236a16ff29333bc06bd9b5ed61e56 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 17fedd1ad3dda70f433991906804be46028954ce..987ccbd73ebde4a936c21e9dd1aa3f0af65f0a4b 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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 300f0ac34f590c4eb5f33da81d0656e7b09a770f..7a31bb5963c52f1216cb3b9d71cf37a213e9553e 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 8308657e8a3ab923c3dc4421708079a5d449dd20..da190aee5267c93ab13a2253ad9bde7ae889678d 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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 35380e7ee62170e156e6dde19fe44f8d2d6aa890..273c73daad474141f7544a831342901bfc01e7ce 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 046cdda21d9f0bd30ad7ed6d143feb9eb8cede04..358f9edde51b1588ec0a9c58223cba5c195f2abf 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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 bdb2be9377e3ad4c3d80918e66feba52010827fa..21b0a82d39e294b51dba0d90ea4701d8c7756af9 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 6c9ee9ce0faf1f5d26225fc858e1bf2afd903154..5bae50473ee16070327a84b5ac1aa90d7a5d26f6 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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 ee0011e124c9f60b4c624252283d71dfaf9d2cdc..eb52494412e801bff9f08ce5d62c4829f736ca95 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 1da8eefd440df2aa172807c1fee3e5766ed816f4..5d355b55a48f00ba2a3cd2bd243cb6c23c9a75e2 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 abd13a6a31f211231ed64bd04aa9db0a76c41ab8..86cfe1ffdb3afec52722394f86dac5532b2a9344 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 03acfe7d3f06deffc54890b805b58321aa109906..b76b66f9f6ceccadb40707030ae0058a4c9b288e 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 1194742a7cb09eeaefddc1793776db0f3be1e572..2e968e67b385879aeb557bfbee7c7e24a790a90c 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 10e529568e00ac844c9cc50fd2e27cf53ace76fe..e723770b0a72693d2f0fc85c5411787ebd675551 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 2b666b200c60be8f2204ab0f28c4d9bc0a6708e7..4be8a0b171ed18ce254c4e273c56281e457b6c7d 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 1304b72016a8850db740ee36389cb2b573109438..1f440a631023af8979fd62a9f5241f5ef4c8062e 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 cdffefaa62317b4b41b37705943cb6b5cc15a956..f4fd11496e47c2b848e12f61e69b2a58239ce26a 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 ca03159901cd348608e53445e85ac9c4d534831a..7809c01c7144e9e58da85a789d58905ddadc66f3 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 68b57cc8744df4dc297ea5951c44eb0408ad5456..efaca0532dad5d0a78027c05b4a6c897d02af916 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 06538c3395cc022558cb1892ac141c84a604ed51..903137ac4e91bcc661a6f9dfdb81ff509d412c6d 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 37ff0f69dc4d3b664ad135368d7721e71ce0ef66..f86f369a755f8e240cd7b03af8b95343ce31786f 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 afaf5609556af207cf8c71fa0ee0484c2d26ad7a..37a2d272b7941d57a3643d447ebb032276586dd9 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 281a241dcf57ca11373a5837236bdcb4a2706d46..4dcbe384f12efd3c09370b7ab38e755339bdab46 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 88ccd1ea2e75ea570a840475578c11913538517b..48468dccf660540e027170a7dd097c1719293e78 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 0e10680a32b59a1193b027b4df5d34676d65e803..6c9a62a4ceeaa76fadfa38156f759ab2a59b3997 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 b94227a15ac3fe4d6df1c2cc4b4ac7c3232a6608..42d382fb775f2c86b4fce6805553a32ac6ee2a6e 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 243b7b0deefb393ef7cff9053c4f9777127cd3df..0aa2736ffa7a508c3c9c4bde16607e62cc3fb6aa 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 85b6fd1389ed4c7cfc9601dfb9116ecd09a3acce..8370ae5994b6026b3e17d5fd88ebeeba77e7c7fe 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 844e31156992cfbc72d4382bd409ecbaef070437..977c3be83ae91e56d16300b684f318a7ec3d9a30 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 a23dbb06b1f8b32f29d3a6d9efc0cd6f9307c2ba..44319e2ee85b57039c69c834c5ae3f7802eeafec 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 88085ce46195b6f5a3a228543d11f8f0b9232ac7..b5ab57494d06b31ceb2cb727ea90ff0f7ea61e9a 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 d76166e2d15092f8d9f2ed570aff87000ecf8c0f..b85acb13cbe319eb2eccd846143a79e53aea9f91 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 3e968beec19ba87f54d62f462cf488a6514339de..96bb7fcf80d35d82d6d1ca5f06a7326adee31e26 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 4c8a2a10c6ae7689570a1ff16eba2aacc21d5804..173e03be81c0230bcab5c059db2da3b668abc13c 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 4f2815f74c9ec3c27cacc10696e5f0faac61f3e3..89628e8cedd984e1f87b401e5f1434ec68f6c378 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 0000000000000000000000000000000000000000..8eb5a7d6eb6b7d71f0c70c244e5768d62bee6ac5 --- /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 0000000000000000000000000000000000000000..428e0f27d8b04f63898eaad3d79b2b46c08e4537 --- /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 98ab14220ff900970b7c565010b53d3c58283c91..b8c281c2a6fa80875bc08cba720067ba14ea7ff2 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 299788b07764c14a926d9578d2e00f748a72f656..9617f1f3eaf610de39e2530a6a9c4807e32b1a78 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 04de9ad38f62b954c8d6493ba746ee6295082cff..5470da6372552f6a2c1e85296226fc6b167e8355 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 de2be014c637de536a9423318318f52186ec90c4..237ced43e7baff99368660ed975960f9f966d651 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