From 70930f2b93494097d018664752c0e7249f04304b Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Thu, 9 Apr 2026 09:01:07 +0100 Subject: [PATCH 1/2] Refactor OSS-Fuzz integration --- README.md | 6 ++++-- fuzz_tests.txt | 18 ++++++++++++++++++ 2 files changed, 22 insertions(+), 2 deletions(-) create mode 100644 fuzz_tests.txt diff --git a/README.md b/README.md index 13d2705..f7ba245 100644 --- a/README.md +++ b/README.md @@ -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_tests.txt`): This file lists all fuzz targets and is + read by the OSS-Fuzz build script. Components that are hosted elsewhere: @@ -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_tests.txt` so that it +is executed by OSS-Fuzz. ## Adding fuzzing to CPython CI diff --git a/fuzz_tests.txt b/fuzz_tests.txt new file mode 100644 index 0000000..8710a5f --- /dev/null +++ b/fuzz_tests.txt @@ -0,0 +1,18 @@ +ast ast.py +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 From 15f8a6a962d24d392ddff32fda155a9a3366b105 Mon Sep 17 00:00:00 2001 From: Stan Ulbrych Date: Thu, 9 Apr 2026 14:44:04 +0100 Subject: [PATCH 2/2] Rename to `fuzz_targets.txt` --- README.md | 4 ++-- fuzz_tests.txt => fuzz_targets.txt | 0 2 files changed, 2 insertions(+), 2 deletions(-) rename fuzz_tests.txt => fuzz_targets.txt (100%) diff --git a/README.md b/README.md index f7ba245..da32f3c 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ 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_tests.txt`): This file lists all fuzz targets and is +* 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: @@ -36,7 +36,7 @@ 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, add the target to `fuzz_tests.txt` so that it +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 diff --git a/fuzz_tests.txt b/fuzz_targets.txt similarity index 100% rename from fuzz_tests.txt rename to fuzz_targets.txt