afl-cmin -m none
MODIFY
afl-cmin
afl-cmin
@@ -183,14 +183,12 @@ BEGIN {
if (_go_c == "Q") {
if (qemu_mode) { print "Option "_go_c" is only allowed once" > "/dev/stderr"}
extra_par = extra_par " -Q"
- if ( !mem_limit_given ) mem_limit = "250"
qemu_mode = 1
continue
} else
if (_go_c == "U") {
if (unicorn_mode) { print "Option "_go_c" is only allowed once" > "/dev/stderr"}
extra_par = extra_par " -U"
- if ( !mem_limit_given ) mem_limit = "250"
unicorn_mode = 1
continue
} else
@@ -200,7 +198,7 @@ BEGIN {
usage()
} # while options
- if (!mem_limit) mem_limit = 200
+ if (!mem_limit) mem_limit = "none"
if (!timeout) timeout = "none"
# get program args

MODIFY
afl-cmin.bash
afl-cmin.bash
@@ -45,7 +45,7 @@ echo
# Process command-line options...
-MEM_LIMIT=200
+MEM_LIMIT=none
TIMEOUT=none
unset IN_DIR OUT_DIR STDIN_FILE EXTRA_PAR MEM_LIMIT_GIVEN \
@@ -85,12 +85,10 @@ while getopts "+i:o:f:m:t:eQUCh" opt; do
;;
"Q")
EXTRA_PAR="$EXTRA_PAR -Q"
- test "$MEM_LIMIT_GIVEN" = "" && MEM_LIMIT=250
QEMU_MODE=1
;;
"U")
EXTRA_PAR="$EXTRA_PAR -U"
- test "$MEM_LIMIT_GIVEN" = "" && MEM_LIMIT=250
UNICORN_MODE=1
;;
"?")

afl-cmin -m none