Open ghost opened 2 years ago
I don't see where the integer division occurs (the call stack appears incorrect, building with debug info might resolve that). However, your command line is missing instrumentation option (between first and second --
) and I suspect that's causing the issue. See https://github.com/googleprojectzero/winafl/blob/master/readme_dr.md for some usage examples.
I'm not sure if it's related to the instrumentation options, because I've seen this example in the readme_dr:
afl-fuzz.exe -e -i in -o out -D <dynamorio bin path> -t 100+ -- -- test_gdiplus.exe @@
which doesn't use any instrumentation options.
I tried to follow the same thing with test_gdiplus, and I still get div by zero.
I've also executed the instrumentation with drrun.exe, as its usage described in the readme_dr aswell, and it worked properly.
The output of WinDBG in the first issue description is of afl-fuzz, compiled with Debug config, so please let me know what else I can do to bring more info.
Note that the -e
switch requires a proper configuration file in the tools
subdirectory of the root of DynamoRIO called winafl.drrun32
or winafl.drrun64
, depending on the target architecture. However, there is no -e
switch in your opening post, hence the instrumentation options should be specified in the command line.
Hi, I've built WinAFL from master branch (last commit b291220), using Visual Studio 2019 (also tried with 2022) Using latest DynamoRIO (last commit 0c479bf)
I'm trying to run the afl-fuzz with test.exe, feeding with corpus "test" This is my command line:
afl-fuzz.exe -i in -o out -t 2000 -D "C:\Users\dev\Desktop\dynamorio-master\build\bin32" -- -- test.exe @@
The fuzzer is firing up:
And after couple of seconds, the fuzzer crashes. And I get this crash everytime, with different parameters (tried without instrumentation, different targets, different build versions, architecture).
This is the crash along with the call stack:
Am I doing something wrong?
This is my build toolset: Windows 10.0.19044 Windows SDK version 10.0.19041.0 MSVC 19.29.30143.0