• Michael Macnair's avatar
    Add support for afl-fuzz testing · 9e500b49
    Michael Macnair authored
    "make fuzz" creates a simple executable that de-serialises stdin
    and re-serialises to stdout.
    "make fuzz_testcases" extracts the smaller json test cases into
    a testcases directory.
    
    The library can then be fuzzed as follows:
        CC=afl-clang-fast make fuzz
        make fuzz_testcases
        mkdir out
        afl-fuzz -i testcases -o out ./fuzz
    9e500b49
fuzz.cpp 817 Bytes