diff options
author | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-10-19 13:59:31 +0200 |
---|---|---|
committer | Andrea Fioraldi <andreafioraldi@gmail.com> | 2021-10-19 13:59:31 +0200 |
commit | 77a63d8ccfd4b409c35227e174f1d6e809256e41 (patch) | |
tree | 6eaff3fb9d7897f75f4b047426732cab513f2245 /src | |
parent | 65e63b9cf107ae914630a4fff7381cee150df5fe (diff) | |
download | afl++-77a63d8ccfd4b409c35227e174f1d6e809256e41.tar.gz |
execs field in filenames
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz-bitmap.c | 5 | ||||
-rw-r--r-- | src/afl-fuzz-init.c | 4 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/afl-fuzz-bitmap.c b/src/afl-fuzz-bitmap.c index 0ae4d607..316067e4 100644 --- a/src/afl-fuzz-bitmap.c +++ b/src/afl-fuzz-bitmap.c @@ -317,8 +317,9 @@ u8 *describe_op(afl_state_t *afl, u8 new_bits, size_t max_description_len) { } - sprintf(ret + strlen(ret), ",time:%llu", - get_cur_time() + afl->prev_run_time - afl->start_time); + sprintf(ret + strlen(ret), ",time:%llu,execs:%llu", + get_cur_time() + afl->prev_run_time - afl->start_time, + afl->fsrv.total_execs); if (afl->current_custom_fuzz && afl->current_custom_fuzz->afl_custom_describe) { diff --git a/src/afl-fuzz-init.c b/src/afl-fuzz-init.c index 9bb25785..0fa8e6ec 100644 --- a/src/afl-fuzz-init.c +++ b/src/afl-fuzz-init.c @@ -1325,8 +1325,8 @@ void pivot_inputs(afl_state_t *afl) { } - nfn = alloc_printf("%s/queue/id:%06u,time:0,orig:%s", afl->out_dir, id, - use_name); + nfn = alloc_printf("%s/queue/id:%06u,time:0,execs:%llu,orig:%s", afl->out_dir, id, + afl->fsrv.total_execs, use_name); #else |