mirror of
https://github.com/minetest/irrlicht.git
synced 2024-12-25 02:00:30 +01:00
18 lines
292 B
Bash
Executable File
18 lines
292 B
Bash
Executable File
#!/bin/bash
|
|
export AFL_SKIP_CPUFREQ=1
|
|
export AFL_TMPDIR=/dev/shm
|
|
exe=./bin/Linux/LoadMesh
|
|
opts=(
|
|
-t 100
|
|
-i sample_u/
|
|
-o out/
|
|
)
|
|
if ! [ -d sample_u ]; then
|
|
mkdir sample_u
|
|
afl-cmin.bash -T 4 -i sample/ -o sample_u/ -- $exe @@
|
|
echo; echo
|
|
fi
|
|
exec afl-fuzz \
|
|
"${opts[@]}" "$@" \
|
|
-- $exe @@
|