about summary refs log tree commit diff
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-05 19:32:27 +0100
committervanhauser-thc <vh@thc.org>2021-03-05 19:32:27 +0100
commit9844e1a856d38780a8bff6e15411956e3f183d57 (patch)
treecb903236c6d81923b77b5d576b87ad7767928e9b
parent44be521ab8ef5d62847ae48ebdb060d84aae5e47 (diff)
downloadafl++-9844e1a856d38780a8bff6e15411956e3f183d57.tar.gz
fix
-rwxr-xr-xafl-cmin4
-rwxr-xr-xafl-cmin.bash1
2 files changed, 5 insertions, 0 deletions
diff --git a/afl-cmin b/afl-cmin
index 4ee79a79..7f8544eb 100755
--- a/afl-cmin
+++ b/afl-cmin
@@ -287,6 +287,10 @@ BEGIN {
     exit 1
   }
 
+  if (0 == system( "test -d "in_dir"/default" )) {
+    in_dir = in_dir "/default"
+  }
+
   if (0 == system( "test -d "in_dir"/queue" )) {
     in_dir = in_dir "/queue"
   }
diff --git a/afl-cmin.bash b/afl-cmin.bash
index dae21939..5b2c3894 100755
--- a/afl-cmin.bash
+++ b/afl-cmin.bash
@@ -223,6 +223,7 @@ if [ ! -d "$IN_DIR" ]; then
   exit 1
 fi
 
+test -d "$IN_DIR/default" && IN_DIR="$IN_DIR/default"
 test -d "$IN_DIR/queue" && IN_DIR="$IN_DIR/queue"
 
 find "$OUT_DIR" -name 'id[:_]*' -maxdepth 1 -exec rm -- {} \; 2>/dev/null