move taint_mode var

This commit is contained in:
van Hauser
2020-08-11 15:10:18 +02:00
parent 4f695b6f4c
commit 457f627101
6 changed files with 24 additions and 21 deletions

View File

@ -220,6 +220,7 @@ void perform_taint_run(afl_state_t *afl, struct queue_entry *q, u8 *fname,
} else {
FATAL("count not create '%s'", fnw);
q->taint_bytes_new = 0;
}
@ -419,7 +420,7 @@ void add_to_queue(afl_state_t *afl, u8 *fname, u8 *mem, u32 len,
afl->last_path_time = get_cur_time();
/* trigger the tain gathering if this is not a dry run */
if (afl->fsrv.taint_mode && mem) {
if (afl->taint_mode && mem) {
perform_taint_run(afl, q, fname, mem, len);