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

The fuzz generates new inputs but changes the data structure #16

Open
Bubble-mt opened this issue Oct 9, 2020 · 2 comments
Open

The fuzz generates new inputs but changes the data structure #16

Bubble-mt opened this issue Oct 9, 2020 · 2 comments

Comments

@Bubble-mt
Copy link

When I use the tool to test a function which has complex input parameters, such as list, dictionary or etc, the afl fuzz would generate new inputs, but the input data structure would be changed to be different with what I want, so when I run py fuzz, I get crashes that I don't want.
Is this an issue? Or how I should using python afl to test these functions?

@koltiradw
Copy link

Hi! You probably need to use structure aware mutators for this. Look this https://github.com/google/libprotobuf-mutator.

@jwilk
Copy link
Owner

jwilk commented Jul 26, 2022

AFL gives you a sequence of arbitrary bytes.
It's up to you to convert that into a data structure you want without raising exceptions.

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

3 participants