Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Instrument test utility functions to increase fuzzer efficiency #1915

Merged
merged 1 commit into from
May 15, 2024

Conversation

DaveLak
Copy link
Contributor

@DaveLak DaveLak commented May 15, 2024

Fuzz Introspector was reporting a high percentage of fuzz blockers in the fuzz_diff test. This means the fuzzing engine was unable to gain visibility into functions lower in the call stack than the blocking functions, making it less effective at producing interesting input data.

This clears a large percentage of the fuzz blockers by adding fuzzer instrumentation to them via the @atheris.instrument_func decorator.

Fuzz Introspector Before & After Screenshots

Before image
After image

Fuzz Introspector was reporting a high percentage of fuzz blockers
in the `fuzz_diff` test. This means the fuzzing engine was unable
to gain visibility into functions lower in the call stack than the
blocking functions, making it less effective at producing interesting
input data.

This clears a large percentage of the fuzz blockers by adding fuzzer
instrumentation to them via the `@atheris.instrument_func` decorator.
Copy link
Member

@Byron Byron left a comment

Choose a reason for hiding this comment

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

Thanks a million! This looks like a tiny change for massive gains.

@Byron Byron merged commit adf4bf0 into gitpython-developers:main May 15, 2024
26 checks passed
@DaveLak DaveLak deleted the fix-blockers-in-fuzz-diff branch May 15, 2024 19:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants