From cbdcd32959a5ef57e6edd79298aa9bb852308a52 Mon Sep 17 00:00:00 2001 From: David Carlier Date: Tue, 9 Jun 2020 22:14:13 +0100 Subject: [PATCH] systems w/o affinity support build fix --- src/afl-fuzz-stats.c | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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 " : "",