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

Add fuzzing harness #15

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Add fuzzing harness #15

wants to merge 2 commits into from

Conversation

Shnatsel
Copy link

@Shnatsel Shnatsel commented Jun 16, 2020

Add a fuzzing harness adapted from the command-line tool. It decodes the input with png crate, encodes it with mtpng, decodes the result with png again and verifies that the decompressed data before and after passing through mtpng is identical.

This is an implementation of #14

So far it's finding bugs in png, not mtpng: image-rs/image-png#222

@Shnatsel
Copy link
Author

The issue in png is fixed in git. I've run this fuzzing harness for 50 million executions, seeded with the corpus I had for png, and found no panics or segfaults. Impressive!

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.

None yet

1 participant