1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-17 22:24:49 +00:00
janet/tools/afl
2019-11-29 16:43:14 +13:00
..
parser_testcases Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00
aggregate_cases.sh Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00
fuzz.sh Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00
parser_runner.janet Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00
prepare_to_fuzz.sh Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00
README.md Add afl fuzzing helpers. 2019-11-29 16:43:14 +13:00

AFL Fuzzing scripts

To use these, you need to install afl (of course), and xterm. A tiling window manager helps manage many concurrent fuzzer instances.

Fuzz the parser

$ sh ./tools/afl/prepare_to_fuzz.sh
export NFUZZ=1
$ sh ./tools/afl/fuzz.sh parser
Ctrl+C when done to close all fuzzer terminals.
$ sh ./tools/afl/aggregate_cases.sh parser
$ ls ./fuzz_out/parser_aggregated/