Commit f80b2a9
authored
Python branch2 (#23)
* Upload the python project Fuzz test script
valid_projects.txt: Python project list
script_fuzz_py_final.sh: Single project test script
script_fuzz_py_batch_final.sh: Batch projects test script
* feat: Add OSS-Fuzz submodule tracking main branch
* chore: Switch oss-fuzz submodule to personal fork
* Switch oss-fuzz submodule to personal fork
* move the valid_project file
* move the .py file
* create build_oss_fuzz.py
* create run_fuzz_target.py
* split the pool.py into build_oss_fuzz and run_fuzz_target
* delete the .sh files
* translate to english
* fuzz_runner_pool.py:74
* edit stdout
* 添加空值检查
* modify stdout, delete pool.py
* indentation level check
* Remove build log write files
* Remove build log write files
* use logging mdule
* use precise logging
* use logging
* use precise exception log info
* correct type problems
* correct some mistakes
* correct some mistakes
* correct
* modify discover fuzz target
* modify the oss-fuzz dir
* Redirect the output to an empty device without retaining any output
* add always yes
* split the build script
* split the build script
* build scripts test successfully
* build.py
* collect targets first and then run
* list, tuple, ptional
* list,tuple,optional
* translate
* build_fuzz.py, run_fuzz_all_target.py
* correct
* original
* record input
* Fatal error in main program: cannot unpack non-iterable NoneType object
* name 'target_functions' is not defined
fuzz_util_instrumented.py does not seem to exist
* 准备大改
* create modify file script add"print(data)" to each fuzz_.py
* build_fuzzer script
* modify tuple dict list
* remove stdout stderr in build fuzz
* test successfully
* rename run fuzz ds to run fuzz print1
* add print(data ) to fuzz target and rename the file with "_print1"
* oss -fuzz change
* rename the print1.py
* modify the exegesis
* modify
* modify log name
* type error
* list dict tuple
* type error
* construct errors module
* run_command module
* combine the run_command instrument to one file
* remove the run_command
* modify
* mytype check
* mytype
* mytype
* mytype
* translate
* remove run command
* timeout - shell instrument
* correct in out error and return Popen directly
* ready to change from rust script
* 修改build_image
* y/n
* correct repo_id and repo_name in main
* test build_image 构建日志
* add build_fuzzer
* fuzz and testgen
* correct run_one_target
* fuzz ok
* transform
* testgen need to ^ help: add `;` here
* test successful
* example output project
* type error
* English ver
* delete privious scripts
* python template
* python template
* correct the template
* ver2 wrong template
* ok
* testgen file change into copy the original and then add input_data =b""
* only read b' ' inputs
* remove transform
* clean the inputs and testgen
* set max_file
* max input file
* input b""
* modify the method of writing files into PIPE
* use max total time; remove size monitor
* 修改并行错误, 写入方法还是直接写入文件 延时控制为max total time
* 补充日志输出
* 模板生成成功
* testgen完成
* 删除冗余, 修改代码
* 更换为未删除冗余版本
* template插入data=b""
函数header改为test_()
* translation
* A complete script for building the processes of build_image, build_fuzzer, fuzz, transform, and testgen, suitable for Python projects.
* delete some imports
* use ASTfor transform and testgen
* use AST
* Set up command line arguments
* use fire
* use FIre
* black formatter
* deal the data after closing the file
* when doing line-matching, check for # This is a test template in the line
* when doing line-matching, check for # This is a test template in the line
* delete UnicodeDecodeError
* apply transformations on the original unmodified fuzz targets.
* put all AST related class/module/function in another file and import from there.
* put all AST related class/module/function in another file and import from there.
* translation
* use relative address
* use relative address
* remove the class outside of the function
* add tuple's type
* Properly handle indentation and process data after the file is closed.
* correct tne relative path
* add black to requirements.txt1 parent aaba59b commit f80b2a9
File tree
5 files changed
+495
-306
lines changed- fuzz
5 files changed
+495
-306
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
| 47 | + | |
| 48 | + | |
| 49 | + | |
| 50 | + | |
| 51 | + | |
| 52 | + | |
| 53 | + | |
| 54 | + | |
| 55 | + | |
| 56 | + | |
| 57 | + | |
| 58 | + | |
| 59 | + | |
| 60 | + | |
| 61 | + | |
| 62 | + | |
| 63 | + | |
| 64 | + | |
| 65 | + | |
| 66 | + | |
| 67 | + | |
| 68 | + | |
| 69 | + | |
| 70 | + | |
| 71 | + | |
| 72 | + | |
| 73 | + | |
| 74 | + | |
| 75 | + | |
| 76 | + | |
| 77 | + | |
| 78 | + | |
| 79 | + | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
| 118 | + | |
| 119 | + | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
| 1 | + | |
| 2 | + | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
| 45 | + | |
| 46 | + | |
0 commit comments