Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ Components that are hosted in this repository:
the fuzzer can use when mutating input sequences.
* Coverage header file (`python_coverage.h`): This file is compiled with CPython
so that line coverage is tracked over time as the fuzzer executes.
* Fuzz test list (`fuzz_targets.txt`): This file lists all fuzz targets and is
read by the OSS-Fuzz build script.

Components that are hosted elsewhere:

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

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

## Adding fuzzing to CPython CI

Expand Down
18 changes: 18 additions & 0 deletions fuzz_targets.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
ast ast.py
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not to get bike-sheddy, but I imagined this file being named fuzz_targets.txt since it's where you put your targets?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Indeed that would be more correct, I just copied what we have for cpython3: fuzz_tests.txt

configparser configparser.py
csv csv.py
decode decode.py
difflib difflib.py
email email.py
html html.py
httpclient httpclient.py
json json.py
plistlib plist.py
re re.py
tarfile tarfile.py
tarfile-hypothesis tarfile_hypothesis.py
tomllib tomllib.py
xml xml.py
zipfile zipfile.py
zipfile-hypothesis zipfile_hypothesis.py
zoneinfo zoneinfo.py