aboutsummaryrefslogtreecommitdiffstats
path: root/bin/fuzz
blob: 001406d03db272c82340bc35aa999e30e61dbb69 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh
set -eu

ncpu="$(cat /proc/cpuinfo | grep '^processor' | wc -l)"

cd fuzz
cargo afl build --release
mkdir -p out

tmux new-window cargo afl fuzz -i in -o out -t 10000 -M main_fuzzer target/release/fuzz
sleep 5
for i in $(seq 2 "$ncpu"); do
    tmux new-window cargo afl fuzz -i in -o out -t 10000 -S "secondary_fuzzer_$i" target/release/fuzz
done