diff options
author | van Hauser <vh@thc.org> | 2020-06-10 09:25:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-10 09:25:06 +0200 |
commit | af66d8027bbd90697cd7b56c4a8cfedebb97daa0 (patch) | |
tree | 5aed8b1d8b201cc1d86a5cd75740dba917fd3fce | |
parent | c02721775a6a6e864631eec7dbd83925e4930d42 (diff) | |
parent | cbdcd32959a5ef57e6edd79298aa9bb852308a52 (diff) | |
download | afl++-af66d8027bbd90697cd7b56c4a8cfedebb97daa0.tar.gz |
Merge pull request #399 from devnexen/non_aff_build_fix
systems w/o affinity support build fix
-rw-r--r-- | src/afl-fuzz-stats.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/afl-fuzz-stats.c b/src/afl-fuzz-stats.c index 374b2411..4493f34d 100644 --- a/src/afl-fuzz-stats.c +++ b/src/afl-fuzz-stats.c @@ -124,7 +124,12 @@ void write_stats_file(afl_state_t *afl, double bitmap_cvg, double stability, #else (unsigned long int)(rus.ru_maxrss >> 10), #endif - afl->cpu_aff, t_bytes, afl->var_byte_count, afl->use_banner, +#ifdef HAVE_AFFINITY + afl->cpu_aff, +#else + -1, +#endif + t_bytes, afl->var_byte_count, afl->use_banner, afl->unicorn_mode ? "unicorn" : "", afl->fsrv.qemu_mode ? "qemu " : "", afl->non_instrumented_mode ? " non_instrumented " : "", afl->no_forkserver ? "no_fsrv " : "", afl->crash_mode ? "crash " : "", |