Improve `fuzz_submodule.py` coverage & efficacy · gitpython-developers/GitPython@2a2294f · GitHub
Skip to content

Commit 2a2294f

Browse files
committed
Improve fuzz_submodule.py coverage & efficacy
The fuzzer was having trouble analyzing `fuzz_submodule.py` when using the `atheris.instrument_imports()` context manager. Switching to `atheris.instrument_all()` instead slightly increases the startup time for the fuzzer, but significantly improves the fuzzing engines ability to identify new coverage. The changes here also disable warnings that are logged to `stdout` from the SUT. These warnings are expected to happen with some inputs and clutter the fuzzer output logs. They can be optionally re-enabled for debugging by passing a flag o the Python interpreter command line or setting the `PYTHONWARNINGS` environment variable.
1 parent 6c00ce6 commit 2a2294f

2 files changed

Lines changed: 15 additions & 5 deletions

File tree

fuzzing/fuzz-targets/fuzz_submodule.py

Lines changed: 13 additions & 3 deletions

fuzzing/fuzz-targets/utils.py

Lines changed: 2 additions & 2 deletions

0 commit comments

Comments
 (0)