summaryrefslogtreecommitdiff
path: root/tools/fuzzing/rost/rerun.sh
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2023-11-13 01:20:17 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2023-11-13 01:20:17 (GMT)
commit6f1f98b46c4753bbbb5b763c64ada556170185b4 (patch)
treea50f2925dd5c1368dbf7f57c0c1a4033ae419b91 /tools/fuzzing/rost/rerun.sh
parente279139b7dcae080723412ea475787123c2389d4 (diff)
Provide some helpers to run ROST with AFL++.
Diffstat (limited to 'tools/fuzzing/rost/rerun.sh')
-rwxr-xr-xtools/fuzzing/rost/rerun.sh27
1 files changed, 27 insertions, 0 deletions
diff --git a/tools/fuzzing/rost/rerun.sh b/tools/fuzzing/rost/rerun.sh
new file mode 100755
index 0000000..3e75189
--- /dev/null
+++ b/tools/fuzzing/rost/rerun.sh
@@ -0,0 +1,27 @@
+#!/bin/bash
+
+SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
+
+TOP_DIR="$SCRIPT_DIR/../../.."
+MIN_DIR="$SCRIPT_DIR/min"
+
+
+find "$MIN_DIR" -type f -name '*rost' | while read f;
+do
+ echo "=========== $f"
+
+ "$TOP_DIR/src/rost" $f /bin/ls
+
+ status=$?
+
+ if [ $status -le 2 ]; then
+ rm $f
+ fi
+
+ sleep 1s
+
+done
+
+
+
+