python-afl icon indicating copy to clipboard operation
python-afl copied to clipboard

The fuzz generates new inputs but changes the data structure

Open Bubble-mt opened this issue 4 years ago • 2 comments

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?

Bubble-mt avatar Oct 09 '20 02:10 Bubble-mt

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

koltiradw avatar Aug 02 '21 09:08 koltiradw

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.

jwilk avatar Jul 26 '22 19:07 jwilk