summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtools/fuzz8
1 files changed, 6 insertions, 2 deletions
diff --git a/tools/fuzz b/tools/fuzz
index 892e950..cb75c67 100755
--- a/tools/fuzz
+++ b/tools/fuzz
@@ -14,8 +14,12 @@ make clean && make
mkdir -p fuzz-in
mkdir -p fuzz-out
mkdir -p fuzz-in-min
-cp ../../tests/scripts/good/*.aplwc fuzz-in
-cp ../../tests/scripts/bad/*.aplwc fuzz-in
+n=0
+for f in ../../tests/scripts/good/*.aplwc ../../tests/scripts/bad/*.aplwc
+do
+ cp "$f" fuzz-in/$n
+ n=$((n+1))
+done
afl-cmin -i fuzz-in -o fuzz-in-min -- ./aplwc @@
rm fuzz-in/*
cd fuzz-in-min