about summary refs log tree commit diff
path: root/afl-cmin
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-10-17 14:34:14 +0200
committerhexcoder- <heiko@hexco.de>2020-10-17 14:34:14 +0200
commitd8a058bf592a040256bb4b0a1ff9dcb97a8e3eda (patch)
treed7c26674146cb2b7328fbd639b9723a6febe1201 /afl-cmin
parentfcea01a8ea7ec507b675d839035eb0fed2f06867 (diff)
downloadafl++-d8a058bf592a040256bb4b0a1ff9dcb97a8e3eda.tar.gz
fix AFL_CMIN_CRASHES_ONLY=1 afl-showmap
Diffstat (limited to 'afl-cmin')
-rwxr-xr-xafl-cmin4
1 files changed, 2 insertions, 2 deletions
diff --git a/afl-cmin b/afl-cmin
index f8d3518d..0dbf1390 100755
--- a/afl-cmin
+++ b/afl-cmin
@@ -409,8 +409,8 @@ BEGIN {
     retval = system( AFL_CMIN_CRASHES_ONLY"\""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string" </dev/null")
   }
 
-  if (retval) {
-    print "[!]Exit code != 0 received from afl-showmap, terminating..."
+  if (retval && !AFL_CMIN_CRASHES_ONLY) {
+    print "[!] Exit code "retval" != 0 received from afl-showmap, terminating..."
 
     if (!ENVIRON["AFL_KEEP_TRACES"]) {
       system("rm -rf "trace_dir" 2>/dev/null")