little more speed for queue analysis

This commit is contained in:
van Hauser
2020-04-17 14:08:40 +02:00
parent ef1d384184
commit 6ee11c2a6f
5 changed files with 10 additions and 8 deletions

View File

@ -271,12 +271,10 @@ void cull_queue(afl_state_t *afl) {
struct queue_entry *q;
u32 len = (afl->fsrv.map_size >> 3);
u32 i;
u8 * temp_v;
u8 * temp_v = afl->map_tmp_buf;
if (afl->dumb_mode || !afl->score_changed) return;
temp_v = ck_maybe_grow((void **)&afl->map_tmp_buf, &afl->map_tmp_size, afl->fsrv.map_size >> 3);
afl->score_changed = 0;
memset(temp_v, 255, len);