rgbds
rgbds copied to clipboard
Debug RGBDS with a fuzzer (afl? libfuzzer?)
meithecatte did it back then I think with AFL, but LLVM also has libfuzzer, which seems to be easier to set up.
Basic setup:
- Build the programs as a library (i.e., no
main) - Create the fuzzer entry point (
int LLVMFuzzerTestOneInput (const unsigned char *, size_t); must accept any input, run it and return 0) - Link the whole thing and build with
-fsanitize=fuzzerand you're done: the resulting binary fuzzes the program