Skip to content

Commit aaba59b

Browse files
authored
feat: Python OSS-Fuzz build and fuzz scripts (#21)
* 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
1 parent 426815f commit aaba59b

File tree

8 files changed

+823
-2
lines changed

8 files changed

+823
-2
lines changed

.gitmodules

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
11
[submodule "UniTSyn"]
22
path = UniTSyn
33
url = https://github.com/SecurityLab-UCD/UniTSyn.git
4+
[submodule "fuzz/oss-fuzz"]
5+
path = fuzz/oss-fuzz
6+
url = https://github.com/joyguoguo/oss-fuzz.git
7+
branch = main

UniTSyn

Submodule UniTSyn updated 1 file

data/valid_projects.txt

Lines changed: 234 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,234 @@
1+
abseil-py
2+
adal
3+
aiohttp
4+
aniso8601
5+
ansible
6+
argcomplete
7+
arrow-py
8+
asn1crypto
9+
asteval
10+
astroid
11+
asttokens
12+
attrs
13+
autoflake
14+
autopep8
15+
azure-sdk-for-python
16+
babel
17+
black
18+
botocore
19+
bottleneck
20+
bz2file
21+
cachetools
22+
cffi
23+
chardet
24+
charset_normalizer
25+
click
26+
cloud-custodian
27+
configparser
28+
connexion
29+
coveragepy
30+
croniter
31+
cryptography
32+
cssselect
33+
dask
34+
decorator
35+
defusedxml
36+
digest
37+
dill
38+
distlib
39+
dnspython
40+
docutils
41+
ecdsa-python
42+
et-xmlfile
43+
face
44+
filelock
45+
filesystem_spec
46+
flask
47+
flask-jwt-extended
48+
flask-restx
49+
flask-wtf
50+
fonttools
51+
ftfy
52+
g-api-auth-httplib2
53+
g-api-auth-library-python
54+
g-api-pubsub
55+
g-api-py-api-common-protos
56+
g-api-py-oauthlib
57+
g-api-python-bigquery-storage
58+
g-api-python-client
59+
g-api-python-cloud-core
60+
g-api-python-firestore
61+
g-api-python-tasks
62+
g-api-resource-manager
63+
g-api-resumable-media-python
64+
g-api-secret-manager
65+
g-apis-py-api-core
66+
gast
67+
gc-iam
68+
gcloud-error-py
69+
g-cloud-logging-py
70+
gcp-python-cloud-storage
71+
genshi
72+
gitdb
73+
glom
74+
gprof2dot
75+
g-py-bigquery
76+
g-py-crc32c
77+
grpc-py
78+
gunicorn
79+
h11
80+
h5py
81+
hiredis-py
82+
html2text
83+
html5lib-python
84+
httpcore
85+
httpretty
86+
httpx
87+
idna
88+
ijson
89+
importlib_metadata
90+
iniconfig
91+
ipaddress
92+
ipykernel
93+
ipython
94+
isodate
95+
itsdangerous
96+
jedi
97+
jinja2
98+
jmespathpy
99+
joblib
100+
jsmin
101+
jupyter-nbconvert
102+
jupyter_server
103+
kafka
104+
keras
105+
kiwisolver
106+
lark-parser
107+
libcst
108+
looker-sdk
109+
lxml
110+
mako
111+
markupsafe
112+
matplotlib
113+
mccabe
114+
mdit-py-plugins
115+
mdurl
116+
more-itertools
117+
mrab-regex
118+
msal
119+
msgpack-python
120+
multidict
121+
mutagen
122+
nbclassic
123+
nbformat
124+
netaddr-py
125+
networkx
126+
ntlm2
127+
ntlm-auth
128+
numexpr
129+
numpy
130+
oauth2
131+
oauthlib
132+
olefile
133+
openapi-schema-validator
134+
opencensus-python
135+
openpyxl
136+
opt_einsum
137+
oracle-py-cx
138+
orjson
139+
oscrypto
140+
packaging
141+
pandas
142+
paramiko
143+
parse
144+
parsimonious
145+
pasta
146+
pathlib2
147+
pdoc
148+
pem
149+
pendulum
150+
pip
151+
ply
152+
protobuf-python
153+
proto-plus-python
154+
psqlparse
155+
psutil
156+
psycopg2
157+
pyasn1
158+
pyasn1-modules
159+
pycparser
160+
pycrypto
161+
pydantic
162+
pydateutil
163+
pygments
164+
pyjson5
165+
pyjwt
166+
pymysql
167+
pynacl
168+
pyodbc
169+
pyparsing
170+
pyrsistent
171+
py-serde
172+
pytables
173+
pytest-py
174+
python3-openid
175+
python-ecdsa
176+
python-email-validator
177+
python-fastjsonschema
178+
python-future
179+
python-graphviz
180+
python-hyperlink
181+
python-jose
182+
python-lz4
183+
python-markdown
184+
python-markdownify
185+
python-nameparser
186+
python-nvd3
187+
python-pathspec
188+
python-prompt-toolkit
189+
python-pypdf
190+
python-rison
191+
python-rsa
192+
python-tabulate
193+
pytz
194+
pyxdg
195+
pyyaml
196+
pyzmq
197+
redis-py
198+
requests
199+
retry
200+
rfc3967
201+
rich
202+
sacremoses
203+
scikit-learn
204+
scipy
205+
setuptools
206+
sigstore-python
207+
simplejson
208+
six
209+
smart_open
210+
soupsieve
211+
sqlalchemy_jsonfield
212+
sqlalchemy-utils
213+
sqlparse
214+
stack_data
215+
tensorflow-addons
216+
tinycss2
217+
toml
218+
tomlkit
219+
toolbelt
220+
toolz
221+
tqdm
222+
typing_extensions
223+
underscore
224+
uritemplate
225+
urlextract
226+
urllib3
227+
validators
228+
w3lib
229+
websocket-client
230+
wheel
231+
wtforms
232+
xlrd
233+
yarl
234+
zipp

fuzz/collect_fuzz.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
"""script for rust fuzzing and transforming test_template"""
2-
32
import logging
43
from typing import Optional
54
import fire

0 commit comments

Comments
 (0)