croniter: instrument fuzzing function (#7865)

* croniter: instrument fuzzing function

The Croniter build is having some troubles with coverage and I'm not
entirely sure why. It seems like the corpus is not there and I'm not
entirely sure if this has to do with some instrumentation underlyings.
Locally the end-to-end process of running, collecting seeds and
generating coverage works for me. The effort in this PR is to make the
setup similar to pyyalm where the coverage visualisation works -- the
only difference I could spot between fuzzers from the two projects is
that croniter does not have its fuzzer entry function instrumented.

* Instrument all. This is similar to protobuf-python
This commit is contained in:
DavidKorczynski 2022-06-15 10:28:46 +01:00 committed by GitHub
parent f7c8580412
commit b9eac4e651
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -26,6 +26,7 @@ with atheris.instrument_imports():
)
@atheris.instrument_func
def TestOneInput(data):
fdp = atheris.FuzzedDataProvider(data)
base = datetime(2012, 4, 6, 13, 26, 10)
@ -45,6 +46,7 @@ def TestOneInput(data):
def main():
atheris.instrument_all()
atheris.Setup(sys.argv, TestOneInput, enable_python_coverage=True)
atheris.Fuzz()