summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtests/run_fuzz_test.sh2
-rwxr-xr-xtools/fuzz8
2 files changed, 6 insertions, 4 deletions
diff --git a/tests/run_fuzz_test.sh b/tests/run_fuzz_test.sh
index 482f045..a04aa82 100755
--- a/tests/run_fuzz_test.sh
+++ b/tests/run_fuzz_test.sh
@@ -1,6 +1,6 @@
#!/bin/sh
-aplwc "$1"
+aplwc -x "$1"
case $? in
0|1)
exit 0
diff --git a/tools/fuzz b/tools/fuzz
index cb75c67..ba3c5f6 100755
--- a/tools/fuzz
+++ b/tools/fuzz
@@ -1,5 +1,7 @@
#!/bin/sh
+export AFL_SKIP_CPUFREQ=1
+
if [ $# -ne 1 ]
then
echo Usage: tools/fuzz BUILD_TYPE
@@ -20,13 +22,13 @@ do
cp "$f" fuzz-in/$n
n=$((n+1))
done
-afl-cmin -i fuzz-in -o fuzz-in-min -- ./aplwc @@
+afl-cmin -i fuzz-in -o fuzz-in-min -- ./aplwc -x @@
rm fuzz-in/*
cd fuzz-in-min
for f in *
do
- afl-tmin -i "$f" -o "../fuzz-in/$f" -- ../aplwc @@
+ afl-tmin -i "$f" -o "../fuzz-in/$f" -- ../aplwc -x @@
done
cd ..
rm -rf fuzz-in-min
-afl-fuzz -i fuzz-in -o fuzz-out -m 20 -t 50 -- ./aplwc @@
+afl-fuzz -i fuzz-in -o fuzz-out -m 20 -t 50 -- ./aplwc -x @@