aboutsummaryrefslogtreecommitdiff
path: root/afl-cmin
diff options
context:
space:
mode:
authorhexcoder- <heiko@hexco.de>2020-02-05 22:08:57 +0100
committerhexcoder- <heiko@hexco.de>2020-02-05 22:08:57 +0100
commit4bcea7b31fcaa9265a1e3f05e5d67d30b32bb32c (patch)
tree3651b212fc927dd11cade84cb9dcfff4630be4c6 /afl-cmin
parent1edc392194ee6fad60057dce4aa2c9b5e2099451 (diff)
downloadAFLplusplus-4bcea7b31fcaa9265a1e3f05e5d67d30b32bb32c.tar.gz
adapt to afl-cmin with forkserver_mode (and stdin)
Diffstat (limited to 'afl-cmin')
-rwxr-xr-xafl-cmin11
1 files changed, 3 insertions, 8 deletions
diff --git a/afl-cmin b/afl-cmin
index f15e3cb4..0aa702ea 100755
--- a/afl-cmin
+++ b/afl-cmin
@@ -390,20 +390,15 @@ BEGIN {
cur = 0;
if (!stdin_file) {
- while (cur < in_count) {
- fn = infilesSmallToBig[cur]
- ++cur;
- printf "\r Processing file "cur"/"in_count
- system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"/"fn"\" -Z "extra_par" -- \""target_bin"\" "prog_args_string" <\""in_dir"/"fn"\"")
- }
+ printf " Processing "in_count" files (forkserver mode)..."
+ system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string)
} else {
- printf " Processing "in_count" files (forkserver mode)...\n"
+ printf " Processing "in_count" files (forkserver mode)..."
system( "AFL_CMIN_ALLOW_ANY=1 \""showmap"\" -m "mem_limit" -t "timeout" -o \""trace_dir"\" -Z "extra_par" -i \""in_dir"\" -- \""target_bin"\" "prog_args_string" </dev/null")
}
print ""
-
#######################################################
# STEP 2: register smallest input file for each tuple #
# STEP 3: copy that file (at most once) #