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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add afl fuzz tests #272

Merged
merged 3 commits into from Jul 6, 2021
Merged

Add afl fuzz tests #272

merged 3 commits into from Jul 6, 2021

Conversation

dbrgn
Copy link
Contributor

@dbrgn dbrgn commented Jan 20, 2020

Here's a setup for fuzzing prost with afl.

For details, see FUZZING.md.

I ran it against prost 0.6.0 to verify that it works, the stack overflow from #267 was found within about 15 minutes 馃檪

Fixes #270.

@dbrgn
Copy link
Contributor Author

dbrgn commented Jan 20, 2020

By the way, I ran 4 fuzzer instances on master for 5.5 hours and they didn't find any crashes.

@dbrgn
Copy link
Contributor Author

dbrgn commented Jan 4, 2021

Still interested in this?

@LucioFranco
Copy link
Member

Sorry for the delay on this. @dbrgn I'd love to understand the benefits of afl over the current fuzzing approach? If it makes sense to add then I think we should!

@dbrgn
Copy link
Contributor Author

dbrgn commented Jul 5, 2021

@LucioFranco AFL and libfuzzer use slightly different approaches, so in my view more fuzzing is always helpful 馃檪

@LucioFranco LucioFranco merged commit 0833d46 into tokio-rs:master Jul 6, 2021
@dbrgn dbrgn deleted the afl branch July 6, 2021 18:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

afl fuzz tests
2 participants