diff options
author | vanhauser-thc <vh@thc.org> | 2020-09-05 12:32:10 +0200 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2020-09-05 12:32:10 +0200 |
commit | 4b3ad5f037ee9a36aa057bf55a69acca1f573922 (patch) | |
tree | 80887d673817863f3964b5cdb1f8f00347fc6290 /src/afl-fuzz-one.c | |
parent | 996986bed5f2dd97a3d76f584d8eddc1203f8396 (diff) | |
download | afl++-4b3ad5f037ee9a36aa057bf55a69acca1f573922.tar.gz |
add cull queue, -i subdir traversal
Diffstat (limited to 'src/afl-fuzz-one.c')
-rw-r--r-- | src/afl-fuzz-one.c | 31 |
1 files changed, 3 insertions, 28 deletions
diff --git a/src/afl-fuzz-one.c b/src/afl-fuzz-one.c index bf568c38..5737c1f5 100644 --- a/src/afl-fuzz-one.c +++ b/src/afl-fuzz-one.c @@ -1707,20 +1707,8 @@ custom_mutator_stage: } while (tid == afl->current_entry && afl->queued_paths > 1); - target = afl->queue; - - while (tid >= 100) { - - target = target->next_100; - tid -= 100; - - } - - while (tid--) { - - target = target->next; - - } + afl->splicing_with = tid; + target = afl->queue_buf[tid]; /* Make sure that the target has a reasonable length. */ @@ -4518,20 +4506,7 @@ pacemaker_fuzzing: } while (tid == afl->current_entry); afl->splicing_with = tid; - target = afl->queue; - - while (tid >= 100) { - - target = target->next_100; - tid -= 100; - - } - - while (tid--) { - - target = target->next; - - } + target = afl->queue_buf[tid]; /* Make sure that the target has a reasonable length. */ |