about summary refs log tree commit diff
path: root/src/afl-fuzz-queue.c
diff options
context:
space:
mode:
authorvan Hauser <vh@thc.org>2020-04-17 14:08:40 +0200
committervan Hauser <vh@thc.org>2020-04-17 14:08:40 +0200
commit6ee11c2a6f96c083f78bce650fbae5730c8ef971 (patch)
treede388d8bab5914a8c88dce5cba69b4f26d4c89e7 /src/afl-fuzz-queue.c
parentef1d384184d2b67afb02836eb48233cce6dc4a89 (diff)
downloadafl++-6ee11c2a6f96c083f78bce650fbae5730c8ef971.tar.gz
little more speed for queue analysis
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r--src/afl-fuzz-queue.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c
index 96711cbc..121eb3f1 100644
--- a/src/afl-fuzz-queue.c
+++ b/src/afl-fuzz-queue.c
@@ -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);