irrlicht/run.sh

18 lines
292 B
Bash
Raw Normal View History

2023-09-17 23:40:31 +02:00
#!/bin/bash
export AFL_SKIP_CPUFREQ=1
export AFL_TMPDIR=/dev/shm
2023-09-18 17:13:32 +02:00
exe=./bin/Linux/LoadMesh
2023-09-17 23:40:31 +02:00
opts=(
-t 100
-i sample_u/
-o out/
)
if ! [ -d sample_u ]; then
mkdir sample_u
2023-09-18 17:13:32 +02:00
afl-cmin.bash -T 4 -i sample/ -o sample_u/ -- $exe @@
2023-09-17 23:40:31 +02:00
echo; echo
fi
exec afl-fuzz \
"${opts[@]}" "$@" \
-- $exe @@