diff options
author | hexcoder- <heiko@hexco.de> | 2021-01-04 20:40:53 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2021-01-04 20:40:53 +0100 |
commit | c6e038fe25789caa8da777f53154de1bd7b4e178 (patch) | |
tree | fecec5ac4c36814b66ef284a887c627ca11ca0c0 /src/afl-fuzz-queue.c | |
parent | 5c224726169e421e95ec7f926f7808ff78cb05df (diff) | |
download | afl++-c6e038fe25789caa8da777f53154de1bd7b4e178.tar.gz |
code cleanups (shadowed vars, (un)signed type mismatches, format types, etc.)
Diffstat (limited to 'src/afl-fuzz-queue.c')
-rw-r--r-- | src/afl-fuzz-queue.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/afl-fuzz-queue.c b/src/afl-fuzz-queue.c index 9a0d199e..cd41bafc 100644 --- a/src/afl-fuzz-queue.c +++ b/src/afl-fuzz-queue.c @@ -489,11 +489,12 @@ void add_to_queue(afl_state_t *afl, u8 *fname, u32 len, u8 passed_det) { void destroy_queue(afl_state_t *afl) { - struct queue_entry *q; u32 i; for (i = 0; i < afl->queued_paths; i++) { + struct queue_entry *q; + q = afl->queue_buf[i]; ck_free(q->fname); ck_free(q->trace_mini); @@ -996,7 +997,7 @@ inline void queue_testcase_retake(afl_state_t *afl, struct queue_entry *q, if (unlikely(!q->testcase_buf)) { - PFATAL("Unable to malloc '%s' with len %d", q->fname, len); + PFATAL("Unable to malloc '%s' with len %u", q->fname, len); } |