From 75f5308bae8ae3bbef0bf135ef2832e7435080e1 Mon Sep 17 00:00:00 2001 From: mdimado Date: Wed, 27 Aug 2025 11:57:42 +0530 Subject: [PATCH] pycups: add instrumentation to all functions in all pycups fuzzers --- projects/pycups/fuzzer/fuzz_UTF8.py | 1 + projects/pycups/fuzzer/fuzz_auth_callback.py | 1 + projects/pycups/fuzzer/fuzz_buffer_handling.py | 1 + projects/pycups/fuzzer/fuzz_file_handling.py | 1 + projects/pycups/fuzzer/fuzz_ipp_io.py | 1 + projects/pycups/fuzzer/fuzz_print_job.py | 1 + projects/pycups/fuzzer/fuzz_printer_management.py | 1 + 7 files changed, 7 insertions(+) diff --git a/projects/pycups/fuzzer/fuzz_UTF8.py b/projects/pycups/fuzzer/fuzz_UTF8.py index c0c0e66..ab40560 100644 --- a/projects/pycups/fuzzer/fuzz_UTF8.py +++ b/projects/pycups/fuzzer/fuzz_UTF8.py @@ -26,6 +26,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_auth_callback.py b/projects/pycups/fuzzer/fuzz_auth_callback.py index 3e2ce09..45c98ec 100644 --- a/projects/pycups/fuzzer/fuzz_auth_callback.py +++ b/projects/pycups/fuzzer/fuzz_auth_callback.py @@ -56,6 +56,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_buffer_handling.py b/projects/pycups/fuzzer/fuzz_buffer_handling.py index fda64d4..bb4c828 100644 --- a/projects/pycups/fuzzer/fuzz_buffer_handling.py +++ b/projects/pycups/fuzzer/fuzz_buffer_handling.py @@ -40,6 +40,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_file_handling.py b/projects/pycups/fuzzer/fuzz_file_handling.py index 7cb27c0..fc868fb 100644 --- a/projects/pycups/fuzzer/fuzz_file_handling.py +++ b/projects/pycups/fuzzer/fuzz_file_handling.py @@ -54,6 +54,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_ipp_io.py b/projects/pycups/fuzzer/fuzz_ipp_io.py index ca13239..cc82b43 100644 --- a/projects/pycups/fuzzer/fuzz_ipp_io.py +++ b/projects/pycups/fuzzer/fuzz_ipp_io.py @@ -72,6 +72,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_print_job.py b/projects/pycups/fuzzer/fuzz_print_job.py index 7a7e1fc..8cddba6 100644 --- a/projects/pycups/fuzzer/fuzz_print_job.py +++ b/projects/pycups/fuzzer/fuzz_print_job.py @@ -39,6 +39,7 @@ def TestOneInput(data: bytes): pass def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz() diff --git a/projects/pycups/fuzzer/fuzz_printer_management.py b/projects/pycups/fuzzer/fuzz_printer_management.py index 7a2318e..0333072 100644 --- a/projects/pycups/fuzzer/fuzz_printer_management.py +++ b/projects/pycups/fuzzer/fuzz_printer_management.py @@ -46,6 +46,7 @@ def TestOneInput(data: bytes): def main(): + atheris.instrument_all() atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True) atheris.Fuzz()