fix forkserver output (support AFL_QUIET)
MODIFY
afl-cmin
afl-cmin
@@ -394,14 +394,12 @@ BEGIN {
cur = 0;
if (!stdin_file) {
print " 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)
+ system( "AFL_QUIET=1 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 {
print " 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")
+ system( "AFL_QUIET=1 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) #

MODIFY
src/afl-forkserver.c
src/afl-forkserver.c
@@ -154,6 +154,7 @@ void init_forkserver(char **argv) {
int status;
s32 rlen;
+ if (!getenv("AFL_QUIET"))
ACTF("Spinning up the fork server...");
if (pipe(st_pipe) || pipe(ctl_pipe)) PFATAL("pipe() failed");
@@ -311,6 +312,7 @@ void init_forkserver(char **argv) {
if (rlen == 4) {
+ if (!getenv("AFL_QUIET"))
OKF("All right - fork server is up.");
return;

fix forkserver output (support AFL_QUIET)