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

Fuzzing #136

Closed
slyrz opened this issue Mar 9, 2017 · 3 comments
Closed

Fuzzing #136

slyrz opened this issue Mar 9, 2017 · 3 comments

Comments

@slyrz
Copy link
Contributor

slyrz commented Mar 9, 2017

Hello Ty and all the other bincode developers,

I just want to let you know I wrote a small crate to fuzz bincode. It's a program that creates and compiles random type signatures, fills them with values and then serializes/deserializes them to check that what was put in came out right again. It also mutates bincode encodings to make the deserialize function hang or panic. It can detect crashes and stalls and all of that. It's not guided, but it achieves a good coverage since it knows how to create valid encodings.

I think it's pretty cool. Might be useful to run every now and then. For example, it could detect the PRs #133 and #134 or this problem I created in my PR acdf8d5.

Let me know what you think. The crate is just a day old and I wrote most of the code in the past hours. If you say "That sounds useful" I'd try to improve the usability by adding a nice command line interface and stuff like that.

@TyOverby
Copy link
Collaborator

This is super cool! I feel like this could also be a really handy tool for people that want to custom-implement the Serde traits and would like to fuzz their implementations!

@TyOverby
Copy link
Collaborator

Hey @slyrz! Bincode is nearing 1.0 and with the latest update to serde 1.0, I had some changes to make.

Fortunately I had your tool handy and with a few modifications, managed to run it against the work that I had done and found a pretty gnarly bug!

I'll certainly be using this in the future as an additional test suite! Thanks again!

@stale
Copy link

stale bot commented Jun 13, 2021

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

@stale stale bot added the stale label Jun 13, 2021
@stale stale bot closed this as completed Jun 20, 2021
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

No branches or pull requests

2 participants