Skip to content

Commit 853f19b

Browse files
Merge branch 'main' into ci-test
2 parents bca35f9 + 2308a57 commit 853f19b

3 files changed

Lines changed: 22 additions & 10 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,8 @@ Components that are hosted in this repository:
2525
the fuzzer can use when mutating input sequences.
2626
* Coverage header file (`python_coverage.h`): This file is compiled with CPython
2727
so that line coverage is tracked over time as the fuzzer executes.
28+
* Fuzz test list (`fuzz_targets.txt`): This file lists all fuzz targets and is
29+
read by the OSS-Fuzz build script.
2830

2931
Components that are hosted elsewhere:
3032

@@ -34,8 +36,8 @@ Components that are hosted elsewhere:
3436
`Dockerfile` and `build.sh` describe how the fuzzer
3537
image is built and what fuzz targets are executed by OSS-Fuzz.
3638

37-
When you create a new fuzz target **don't forget to add the target to the fuzzer image**
38-
so that the fuzz target is executed by OSS-Fuzz.
39+
When you create a new fuzz target, add the target to `fuzz_targets.txt` so that it
40+
is executed by OSS-Fuzz.
3941

4042
## Adding fuzzing to CPython CI
4143

fuzz_targets.txt

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
ast ast.py
2+
configparser configparser.py
3+
csv csv.py
4+
decode decode.py
5+
difflib difflib.py
6+
email email.py
7+
html html.py
8+
httpclient httpclient.py
9+
json json.py
10+
plistlib plist.py
11+
re re.py
12+
tarfile tarfile.py
13+
tarfile-hypothesis tarfile_hypothesis.py
14+
tomllib tomllib.py
15+
xml xml.py
16+
zipfile zipfile.py
17+
zipfile-hypothesis zipfile_hypothesis.py
18+
zoneinfo zoneinfo.py

fuzzer.cpp

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -65,14 +65,6 @@ extern "C" int LLVMFuzzerInitialize(int* argc, char*** argv) {
6565

6666
std::string code = std::string(program.data(), program.data() + program.size());
6767

68-
#if 0
69-
{
70-
wchar_t *program = Py_DecodeLocale(argv0.c_str(), nullptr);
71-
Py_SetProgramName(program);
72-
PyMem_RawFree(program);
73-
}
74-
#endif
75-
7668
Py_Initialize();
7769

7870
{

0 commit comments

Comments
 (0)