mirror of
https://github.com/minetest/irrlicht.git
synced 2024-11-08 16:53:52 +01:00
18 lines
290 B
Bash
18 lines
290 B
Bash
|
#!/bin/bash
|
||
|
export AFL_SKIP_CPUFREQ=1
|
||
|
export AFL_TMPDIR=/dev/shm
|
||
|
opts=(
|
||
|
-t 100
|
||
|
-i sample_u/
|
||
|
-o out/
|
||
|
)
|
||
|
exe=./bin/Linux/LoadTexture
|
||
|
if ! [ -d sample_u ]; then
|
||
|
mkdir sample_u
|
||
|
afl-cmin.bash -i sample/ -o sample_u/ -- $exe @@
|
||
|
echo; echo
|
||
|
fi
|
||
|
exec afl-fuzz \
|
||
|
"${opts[@]}" "$@" \
|
||
|
-- $exe @@
|