afl-cmin -m none

This commit is contained in:
van Hauser 2021-01-21 21:42:15 +01:00
parent 30148bc1a9
commit 2ef8dc4378
2 changed files with 2 additions and 6 deletions

View File

@ -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

View File

@ -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
;;
"?")