winafl icon indicating copy to clipboard operation
winafl copied to clipboard

problems about building WinAFL

Open fuzzyushi opened this issue 10 years ago • 2 comments

Hello, ivanfratric When building WinAFL with visual studio 2010, I got lots of C2664 ERRORs about the conversion from “u8 *” to “const char *”. So I replace the typedef uint8_t u8; with typedef char u8;. However, as a result, I get a lot of problems when testing the generated EXE. And when I build it using dev c++ with gcc, I find the generated EXE get much larger than the original EXE. Meanwhile, the speed of fuzzing also slow down. Do you have any suggestions to solve the problems?

fuzzyushi avatar Oct 12 '16 02:10 fuzzyushi

The published binaries were also created with VS 2010 but I was only ever getting warnings, not errors. Unfortunately, most of those are legacy issues from AFL and I didn't want to spend too much time fixing them for the initial release. Please see building instructions in the readme, you should be able to build everything that way. For size/speed, my guess would be a debug build with compiler optimization turned off.

ivanfratric avatar Oct 12 '16 18:10 ivanfratric

@ivanfratric Ok, when I tried to build it as instructions in the readme, I found almost the same errors. Eventually I solved the problems by adding the cmd -fpermissive when buiding, and with some brute-force method to fix the error fromck_free.

fuzzyushi avatar Oct 13 '16 12:10 fuzzyushi