Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
OpenHarmony
Startup Init Lite
提交
4130f9a7
S
Startup Init Lite
项目概览
OpenHarmony
/
Startup Init Lite
1 年多 前同步成功
通知
3
Star
37
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Startup Init Lite
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
提交
Issue看板
提交
4130f9a7
编写于
4月 14, 2022
作者:
X
xionglei6
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
fix: fuzz test code
Signed-off-by:
N
xionglei6
<
xionglei6@huawei.com
>
上级
fc57055d
变更
78
隐藏空白更改
内联
并排
Showing
78 changed file
with
887 addition
and
114 deletion
+887
-114
bundle.json
bundle.json
+2
-1
test/fuzztest/BUILD.gn
test/fuzztest/BUILD.gn
+73
-55
test/fuzztest/corpus
test/fuzztest/corpus
+16
-0
test/fuzztest/doreboot_fuzzer/corpus/init
test/fuzztest/doreboot_fuzzer/corpus/init
+16
-0
test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.cpp
test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.cpp
+2
-2
test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.h
test/fuzztest/doreboot_fuzzer/doreboot_fuzzer.h
+1
-1
test/fuzztest/doreboot_fuzzer/project.xml
test/fuzztest/doreboot_fuzzer/project.xml
+25
-0
test/fuzztest/getcontrolfile_fuzzer/corpus/init
test/fuzztest/getcontrolfile_fuzzer/corpus/init
+16
-0
test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp
.../fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.cpp
+2
-2
test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.h
test/fuzztest/getcontrolfile_fuzzer/getcontrolfile_fuzzer.h
+1
-1
test/fuzztest/getcontrolfile_fuzzer/project.xml
test/fuzztest/getcontrolfile_fuzzer/project.xml
+25
-0
test/fuzztest/getcontrolsocket_fuzzer/corpus/init
test/fuzztest/getcontrolsocket_fuzzer/corpus/init
+16
-0
test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp
...ztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.cpp
+2
-2
test/fuzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h
...uzztest/getcontrolsocket_fuzzer/getcontrolsocket_fuzzer.h
+1
-1
test/fuzztest/getcontrolsocket_fuzzer/project.xml
test/fuzztest/getcontrolsocket_fuzzer/project.xml
+25
-0
test/fuzztest/mountallfstab_fuzzer/corpus/init
test/fuzztest/mountallfstab_fuzzer/corpus/init
+16
-0
test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.cpp
test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.cpp
+2
-2
test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.h
test/fuzztest/mountallfstab_fuzzer/mountallfstab_fuzzer.h
+1
-1
test/fuzztest/mountallfstab_fuzzer/project.xml
test/fuzztest/mountallfstab_fuzzer/project.xml
+25
-0
test/fuzztest/project.xml
test/fuzztest/project.xml
+2
-2
test/fuzztest/readfileindir_fuzzer/corpus/init
test/fuzztest/readfileindir_fuzzer/corpus/init
+16
-0
test/fuzztest/readfileindir_fuzzer/project.xml
test/fuzztest/readfileindir_fuzzer/project.xml
+25
-0
test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.cpp
test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.cpp
+2
-2
test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.h
test/fuzztest/readfileindir_fuzzer/readfileindir_fuzzer.h
+1
-1
test/fuzztest/servicecontrolstart_fuzzer/corpus/init
test/fuzztest/servicecontrolstart_fuzzer/corpus/init
+16
-0
test/fuzztest/servicecontrolstart_fuzzer/project.xml
test/fuzztest/servicecontrolstart_fuzzer/project.xml
+25
-0
test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp
...servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.cpp
+2
-2
test/fuzztest/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h
...t/servicecontrolstart_fuzzer/servicecontrolstart_fuzzer.h
+1
-1
test/fuzztest/servicecontrolstop_fuzzer/corpus/init
test/fuzztest/servicecontrolstop_fuzzer/corpus/init
+16
-0
test/fuzztest/servicecontrolstop_fuzzer/project.xml
test/fuzztest/servicecontrolstop_fuzzer/project.xml
+25
-0
test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp
...t/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.cpp
+2
-2
test/fuzztest/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h
...est/servicecontrolstop_fuzzer/servicecontrolstop_fuzzer.h
+1
-1
test/fuzztest/systemdumpparameters_fuzzer/corpus/init
test/fuzztest/systemdumpparameters_fuzzer/corpus/init
+16
-0
test/fuzztest/systemdumpparameters_fuzzer/project.xml
test/fuzztest/systemdumpparameters_fuzzer/project.xml
+25
-0
test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp
...stemdumpparameters_fuzzer/systemdumpparameters_fuzzer.cpp
+2
-2
test/fuzztest/systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h
...systemdumpparameters_fuzzer/systemdumpparameters_fuzzer.h
+1
-1
test/fuzztest/systemfindparameter_fuzzer/corpus/init
test/fuzztest/systemfindparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemfindparameter_fuzzer/project.xml
test/fuzztest/systemfindparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp
...systemfindparameter_fuzzer/systemfindparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemfindparameter_fuzzer/systemfindparameter_fuzzer.h
...t/systemfindparameter_fuzzer/systemfindparameter_fuzzer.h
+1
-1
test/fuzztest/systemgetparameter_fuzzer/corpus/init
test/fuzztest/systemgetparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemgetparameter_fuzzer/project.xml
test/fuzztest/systemgetparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp
...t/systemgetparameter_fuzzer/systemgetparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemgetparameter_fuzzer/systemgetparameter_fuzzer.h
...est/systemgetparameter_fuzzer/systemgetparameter_fuzzer.h
+1
-1
test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init
test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init
+16
-0
test/fuzztest/systemgetparametercommitId_fuzzer/project.xml
test/fuzztest/systemgetparametercommitId_fuzzer/project.xml
+25
-0
test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp
...etercommitId_fuzzer/systemgetparametercommitid_fuzzer.cpp
+2
-2
test/fuzztest/systemgetparametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h
...ametercommitId_fuzzer/systemgetparametercommitid_fuzzer.h
+1
-1
test/fuzztest/systemgetparametername_fuzzer/corpus/init
test/fuzztest/systemgetparametername_fuzzer/corpus/init
+16
-0
test/fuzztest/systemgetparametername_fuzzer/project.xml
test/fuzztest/systemgetparametername_fuzzer/project.xml
+25
-0
test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.cpp
...getparametername_fuzzer/systemgetparametername_fuzzer.cpp
+2
-2
test/fuzztest/systemgetparametername_fuzzer/systemgetparametername_fuzzer.h
...emgetparametername_fuzzer/systemgetparametername_fuzzer.h
+1
-1
test/fuzztest/systemgetparametervalue_fuzzer/corpus/init
test/fuzztest/systemgetparametervalue_fuzzer/corpus/init
+16
-0
test/fuzztest/systemgetparametervalue_fuzzer/project.xml
test/fuzztest/systemgetparametervalue_fuzzer/project.xml
+25
-0
test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp
...tparametervalue_fuzzer/systemgetparametervalue_fuzzer.cpp
+2
-2
test/fuzztest/systemgetparametervalue_fuzzer/systemgetparametervalue_fuzzer.h
...getparametervalue_fuzzer/systemgetparametervalue_fuzzer.h
+1
-1
test/fuzztest/systemsetparameter_fuzzer/corpus/init
test/fuzztest/systemsetparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemsetparameter_fuzzer/project.xml
test/fuzztest/systemsetparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp
...t/systemsetparameter_fuzzer/systemsetparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemsetparameter_fuzzer/systemsetparameter_fuzzer.h
...est/systemsetparameter_fuzzer/systemsetparameter_fuzzer.h
+1
-1
test/fuzztest/systemtraversalparameter_fuzzer/corpus/init
test/fuzztest/systemtraversalparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemtraversalparameter_fuzzer/project.xml
test/fuzztest/systemtraversalparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp
...ersalparameter_fuzzer/systemtraversalparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemtraversalparameter_fuzzer/systemtraversalparameter_fuzzer.h
...aversalparameter_fuzzer/systemtraversalparameter_fuzzer.h
+1
-1
test/fuzztest/systemwaitparameter_fuzzer/corpus/init
test/fuzztest/systemwaitparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemwaitparameter_fuzzer/project.xml
test/fuzztest/systemwaitparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp
...systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h
...t/systemwaitparameter_fuzzer/systemwaitparameter_fuzzer.h
+1
-1
test/fuzztest/systemwatchparameter_fuzzer/corpus/init
test/fuzztest/systemwatchparameter_fuzzer/corpus/init
+16
-0
test/fuzztest/systemwatchparameter_fuzzer/project.xml
test/fuzztest/systemwatchparameter_fuzzer/project.xml
+25
-0
test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp
...stemwatchparameter_fuzzer/systemwatchparameter_fuzzer.cpp
+2
-2
test/fuzztest/systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h
...systemwatchparameter_fuzzer/systemwatchparameter_fuzzer.h
+1
-1
test/fuzztest/umountallfstab_fuzzer/corpus/init
test/fuzztest/umountallfstab_fuzzer/corpus/init
+16
-0
test/fuzztest/umountallfstab_fuzzer/project.xml
test/fuzztest/umountallfstab_fuzzer/project.xml
+25
-0
test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.cpp
.../fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.cpp
+2
-2
test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.h
test/fuzztest/umountallfstab_fuzzer/umountallfstab_fuzzer.h
+1
-1
test/fuzztest/utils/fuzz_utils.cpp
test/fuzztest/utils/fuzz_utils.cpp
+1
-1
test/fuzztest/utils/include/fuzz_utils.h
test/fuzztest/utils/include/fuzz_utils.h
+1
-1
未找到文件。
bundle.json
浏览文件 @
4130f9a7
...
...
@@ -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"
]
}
}
...
...
test/fuzztest/BUILD.gn
浏览文件 @
4130f9a7
# 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_DoR
eboot_fuzzer.cpp" ]
sources = [ "
doreboot_fuzzer/dor
eboot_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_GetControlF
ile_fuzzer.cpp",
"
getcontrolfile_fuzzer/getcontrolf
ile_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_GetControlS
ocket_fuzzer.cpp" ]
sources = [ "
getcontrolsocket_fuzzer/getcontrols
ocket_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_MountAllF
stab_fuzzer.cpp",
"
mountallfstab_fuzzer/mountallf
stab_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_ReadFileInD
ir_fuzzer.cpp",
"
readfileindir_fuzzer/readfileind
ir_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_ServiceControlS
tart_fuzzer.cpp" ]
sources = [ "
servicecontrolstart_fuzzer/servicecontrols
tart_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_ServiceControlS
top_fuzzer.cpp" ]
sources = [ "
servicecontrolstop_fuzzer/servicecontrols
top_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_SystemDumpP
arameters_fuzzer.cpp" ]
sources = [ "
systemdumpparameters_fuzzer/systemdumpp
arameters_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_SystemFindP
arameter_fuzzer.cpp" ]
sources = [ "
systemfindparameter_fuzzer/systemfindp
arameter_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_SystemGetP
arameter_fuzzer.cpp" ]
sources = [ "
systemgetparameter_fuzzer/systemgetp
arameter_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_SystemGetParameterCommitI
d_fuzzer.cpp" ]
sources = [ "
systemgetparametercommitid_fuzzer/systemgetparametercommiti
d_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_SystemGetParameterN
ame_fuzzer.cpp" ]
sources = [ "
systemgetparametername_fuzzer/systemgetparametern
ame_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_SystemGetParameterV
alue_fuzzer.cpp" ]
sources = [ "
systemgetparametervalue_fuzzer/systemgetparameterv
alue_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_SystemSetP
arameter_fuzzer.cpp" ]
sources = [ "
systemsetparameter_fuzzer/systemsetp
arameter_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_SystemTraversalP
arameter_fuzzer.cpp" ]
sources = [ "
systemtraversalparameter_fuzzer/systemtraversalp
arameter_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_SystemWaitP
arameter_fuzzer.cpp" ]
sources = [ "
systemwaitparameter_fuzzer/systemwaitp
arameter_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_SystemWatchP
arameter_fuzzer.cpp" ]
sources = [ "
systemwatchparameter_fuzzer/systemwatchp
arameter_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_UmountAllF
stab_fuzzer.cpp",
"
umountallfstab_fuzzer/umountallf
stab_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",
]
}
###############################################################################
test/fuzztest/corpus
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/doreboot_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/
test_startup_DoReboot_fuzzer/test_startup_DoR
eboot_fuzzer.cpp
→
test/fuzztest/
doreboot_fuzzer/dor
eboot_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_DoR
eboot_fuzzer.h"
#include "
dor
eboot_fuzzer.h"
#include "init_reboot.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_DoReboot_fuzzer/test_startup_DoR
eboot_fuzzer.h
→
test/fuzztest/
doreboot_fuzzer/dor
eboot_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/doreboot_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/getcontrolfile_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/
test_startup_GetControlFile_fuzzer/test_startup_GetControlF
ile_fuzzer.cpp
→
test/fuzztest/
getcontrolfile_fuzzer/getcontrolf
ile_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_GetControlF
ile_fuzzer.h"
#include "
getcontrolf
ile_fuzzer.h"
#include "init_file.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_GetControlFile_fuzzer/test_startup_GetControlF
ile_fuzzer.h
→
test/fuzztest/
getcontrolfile_fuzzer/getcontrolf
ile_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/getcontrolfile_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/getcontrolsocket_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/
test_startup_GetControlSocket_fuzzer/test_startup_GetControlS
ocket_fuzzer.cpp
→
test/fuzztest/
getcontrolsocket_fuzzer/getcontrols
ocket_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_GetControlS
ocket_fuzzer.h"
#include "
getcontrols
ocket_fuzzer.h"
#include "init_socket.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_GetControlSocket_fuzzer/test_startup_GetControlS
ocket_fuzzer.h
→
test/fuzztest/
getcontrolsocket_fuzzer/getcontrols
ocket_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/getcontrolsocket_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/mountallfstab_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/
test_startup_MountAllFstab_fuzzer/test_startup_MountAllF
stab_fuzzer.cpp
→
test/fuzztest/
mountallfstab_fuzzer/mountallf
stab_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_MountAllF
stab_fuzzer.h"
#include "
mountallf
stab_fuzzer.h"
#include <iostream>
#include "fs_manager/fs_manager.h"
...
...
test/fuzztest/
test_startup_MountAllFstab_fuzzer/test_startup_MountAllF
stab_fuzzer.h
→
test/fuzztest/
mountallfstab_fuzzer/mountallf
stab_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/mountallfstab_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/project.xml
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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.
...
...
@@ -18,7 +18,7 @@
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
0
</max_total_time>
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
...
...
test/fuzztest/readfileindir_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/readfileindir_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInD
ir_fuzzer.cpp
→
test/fuzztest/
readfileindir_fuzzer/readfileind
ir_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_ReadFileInD
ir_fuzzer.h"
#include "
readfileind
ir_fuzzer.h"
#include <fstream>
#include <iostream>
...
...
test/fuzztest/
test_startup_ReadFileInDir_fuzzer/test_startup_ReadFileInD
ir_fuzzer.h
→
test/fuzztest/
readfileindir_fuzzer/readfileind
ir_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/servicecontrolstart_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/servicecontrolstart_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlS
tart_fuzzer.cpp
→
test/fuzztest/
servicecontrolstart_fuzzer/servicecontrols
tart_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_ServiceControlS
tart_fuzzer.h"
#include "
servicecontrols
tart_fuzzer.h"
#include "service_control.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_ServiceControlStart_fuzzer/test_startup_ServiceControlS
tart_fuzzer.h
→
test/fuzztest/
servicecontrolstart_fuzzer/servicecontrols
tart_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/servicecontrolstop_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/servicecontrolstop_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlS
top_fuzzer.cpp
→
test/fuzztest/
servicecontrolstop_fuzzer/servicecontrols
top_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_ServiceControlS
top_fuzzer.h"
#include "
servicecontrols
top_fuzzer.h"
#include "service_control.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_ServiceControlStop_fuzzer/test_startup_ServiceControlS
top_fuzzer.h
→
test/fuzztest/
servicecontrolstop_fuzzer/servicecontrols
top_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemdumpparameters_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemdumpparameters_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpP
arameters_fuzzer.cpp
→
test/fuzztest/
systemdumpparameters_fuzzer/systemdumpp
arameters_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemDumpP
arameters_fuzzer.h"
#include "
systemdumpp
arameters_fuzzer.h"
#include "sys_param.h"
#include "fuzz_utils.h"
...
...
test/fuzztest/
test_startup_SystemDumpParameters_fuzzer/test_startup_SystemDumpP
arameters_fuzzer.h
→
test/fuzztest/
systemdumpparameters_fuzzer/systemdumpp
arameters_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemfindparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemfindparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindP
arameter_fuzzer.cpp
→
test/fuzztest/
systemfindparameter_fuzzer/systemfindp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemFindP
arameter_fuzzer.h"
#include "
systemfindp
arameter_fuzzer.h"
#include "sys_param.h"
static
ParamHandle
handle
;
...
...
test/fuzztest/
test_startup_SystemFindParameter_fuzzer/test_startup_SystemFindP
arameter_fuzzer.h
→
test/fuzztest/
systemfindparameter_fuzzer/systemfindp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemgetparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemgetparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetP
arameter_fuzzer.cpp
→
test/fuzztest/
systemgetparameter_fuzzer/systemgetp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemGetP
arameter_fuzzer.h"
#include "
systemgetp
arameter_fuzzer.h"
#include <iostream>
#include "sys_param.h"
...
...
test/fuzztest/
test_startup_SystemGetParameter_fuzzer/test_startup_SystemGetP
arameter_fuzzer.h
→
test/fuzztest/
systemgetparameter_fuzzer/systemgetp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemgetparametercommitId_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemgetparametercommitId_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitI
d_fuzzer.cpp
→
test/fuzztest/
systemgetparametercommitId_fuzzer/systemgetparametercommiti
d_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemGetParameterCommitI
d_fuzzer.h"
#include "
systemgetparametercommiti
d_fuzzer.h"
#include "sys_param.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_SystemGetParameterCommitId_fuzzer/test_startup_SystemGetParameterCommitI
d_fuzzer.h
→
test/fuzztest/
systemgetparametercommitId_fuzzer/systemgetparametercommiti
d_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemgetparametername_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemgetparametername_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterN
ame_fuzzer.cpp
→
test/fuzztest/
systemgetparametername_fuzzer/systemgetparametern
ame_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemGetParameterN
ame_fuzzer.h"
#include "
systemgetparametern
ame_fuzzer.h"
#include "sys_param.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_SystemGetParameterName_fuzzer/test_startup_SystemGetParameterN
ame_fuzzer.h
→
test/fuzztest/
systemgetparametername_fuzzer/systemgetparametern
ame_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemgetparametervalue_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemgetparametervalue_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterV
alue_fuzzer.cpp
→
test/fuzztest/
systemgetparametervalue_fuzzer/systemgetparameterv
alue_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemGetParameterV
alue_fuzzer.h"
#include "
systemgetparameterv
alue_fuzzer.h"
#include "sys_param.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_SystemGetParameterValue_fuzzer/test_startup_SystemGetParameterV
alue_fuzzer.h
→
test/fuzztest/
systemgetparametervalue_fuzzer/systemgetparameterv
alue_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemsetparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemsetparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetP
arameter_fuzzer.cpp
→
test/fuzztest/
systemsetparameter_fuzzer/systemsetp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemSetP
arameter_fuzzer.h"
#include "
systemsetp
arameter_fuzzer.h"
#include "sys_param.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_SystemSetParameter_fuzzer/test_startup_SystemSetP
arameter_fuzzer.h
→
test/fuzztest/
systemsetparameter_fuzzer/systemsetp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemtraversalparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemtraversalparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalP
arameter_fuzzer.cpp
→
test/fuzztest/
systemtraversalparameter_fuzzer/systemtraversalp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemTraversalP
arameter_fuzzer.h"
#include "
systemtraversalp
arameter_fuzzer.h"
#include "fuzz_utils.h"
#include "init.h"
...
...
test/fuzztest/
test_startup_SystemTraversalParameter_fuzzer/test_startup_SystemTraversalP
arameter_fuzzer.h
→
test/fuzztest/
systemtraversalparameter_fuzzer/systemtraversalp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemwaitparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemwaitparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitP
arameter_fuzzer.cpp
→
test/fuzztest/
systemwaitparameter_fuzzer/systemwaitp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemWaitP
arameter_fuzzer.h"
#include "
systemwaitp
arameter_fuzzer.h"
#include "sys_param.h"
namespace
OHOS
{
...
...
test/fuzztest/
test_startup_SystemWaitParameter_fuzzer/test_startup_SystemWaitP
arameter_fuzzer.h
→
test/fuzztest/
systemwaitparameter_fuzzer/systemwaitp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/systemwatchparameter_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/systemwatchparameter_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchP
arameter_fuzzer.cpp
→
test/fuzztest/
systemwatchparameter_fuzzer/systemwatchp
arameter_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_SystemWatchP
arameter_fuzzer.h"
#include "
systemwatchp
arameter_fuzzer.h"
#include "init.h"
#include "sys_param.h"
...
...
test/fuzztest/
test_startup_SystemWatchParameter_fuzzer/test_startup_SystemWatchP
arameter_fuzzer.h
→
test/fuzztest/
systemwatchparameter_fuzzer/systemwatchp
arameter_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/umountallfstab_fuzzer/corpus/init
0 → 100644
浏览文件 @
4130f9a7
/*
* 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
test/fuzztest/umountallfstab_fuzzer/project.xml
0 → 100644
浏览文件 @
4130f9a7
<?xml version="1.0" encoding="utf-8"?>
<!-- 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
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_config>
<fuzztest>
<!-- maximum length of a test input -->
<max_len>
100
</max_len>
<!-- maximum total time in seconds to run the fuzzer -->
<max_total_time>
30
</max_total_time>
<!-- memory usage limit in Mb -->
<rss_limit_mb>
2048
</rss_limit_mb>
</fuzztest>
</fuzz_config>
test/fuzztest/
test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllF
stab_fuzzer.cpp
→
test/fuzztest/
umountallfstab_fuzzer/umountallf
stab_fuzzer.cpp
浏览文件 @
4130f9a7
/*
* 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_UmountAllF
stab_fuzzer.h"
#include "
umountallf
stab_fuzzer.h"
#include <iostream>
#include "fs_manager/fs_manager.h"
...
...
test/fuzztest/
test_startup_UmountAllFstab_fuzzer/test_startup_UmountAllF
stab_fuzzer.h
→
test/fuzztest/
umountallfstab_fuzzer/umountallf
stab_fuzzer.h
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/utils/fuzz_utils.cpp
浏览文件 @
4130f9a7
/*
* 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
...
...
test/fuzztest/utils/include/fuzz_utils.h
浏览文件 @
4130f9a7
/*
* 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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录