Bundle Protocol Version 7 (RFC 9171) for Delay-Tolerant Networking
at main 33 lines 607 B view raw
1; Crowbar fuzz testing for bundle 2; 3; To run: dune exec fuzz/fuzz.exe 4; With AFL: afl-fuzz -i fuzz/input -o fuzz/findings -- ./_build/default/fuzz/fuzz.exe @@ 5 6(executable 7 (name fuzz) 8 (modules fuzz fuzz_bundle) 9 (libraries bundle crowbar)) 10 11(rule 12 (alias runtest) 13 (enabled_if 14 (<> %{profile} afl)) 15 (deps fuzz.exe) 16 (action 17 (run %{exe:fuzz.exe}))) 18 19(rule 20 (alias fuzz) 21 (enabled_if 22 (= %{profile} afl)) 23 (deps 24 (source_tree corpus) 25 fuzz.exe 26 gen_corpus.exe) 27 (action 28 (echo "AFL fuzzer built: %{exe:fuzz.exe}\n"))) 29 30(executable 31 (name gen_corpus) 32 (modules gen_corpus) 33 (libraries bundle unix))