about summary refs log tree commit diff
path: root/afl-cmin
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2024-01-19 11:53:44 +0100
committervanhauser-thc <vh@thc.org>2024-01-19 11:53:44 +0100
commita518c4d75c15e2e0cb8633361a0162eb70c7965b (patch)
tree2a372707d171a9e32706ee61d61094023cc4b64a /afl-cmin
parent660b697ed9d1d14987ffba4bf80ad4cbe6f29f95 (diff)
downloadafl++-a518c4d75c15e2e0cb8633361a0162eb70c7965b.tar.gz
macos
Diffstat (limited to 'afl-cmin')
-rwxr-xr-xafl-cmin6
1 files changed, 5 insertions, 1 deletions
diff --git a/afl-cmin b/afl-cmin
index 566f157d..4aaf3953 100755
--- a/afl-cmin
+++ b/afl-cmin
@@ -1,11 +1,15 @@
 #!/usr/bin/env sh
+SYS=$(uname -s)
+test "$SYS" = "Darwin" && {
+  echo Error: afl-cmin does not work on Apple currently. please use afl-cmin.bash instead.
+  exit 1
+}
 export AFL_QUIET=1
 export ASAN_OPTIONS=detect_leaks=0
 THISPATH=`dirname ${0}`
 export PATH="${THISPATH}:$PATH"
 awk -f - -- ${@+"$@"} <<'EOF'
 #!/usr/bin/awk -f
-
 # awk script to minimize a test corpus of input files
 #
 # based on afl-cmin bash script written by Michal Zalewski