diff options
author | vanhauser-thc <vh@thc.org> | 2022-11-23 10:27:30 +0100 |
---|---|---|
committer | vanhauser-thc <vh@thc.org> | 2022-11-23 10:27:30 +0100 |
commit | 4124a272d821629adce648fb37ca1e7f0ce0e84f (patch) | |
tree | 6e02fe46695f2ee6363a658dab6553b68ca63ada /src/afl-fuzz.c | |
parent | a16726039f167548da86ce51d0cf4bd1b04e5374 (diff) | |
download | afl++-4124a272d821629adce648fb37ca1e7f0ce0e84f.tar.gz |
crash fix for queue analysis feature
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 7bb9ba2b..976d61e5 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2523,7 +2523,12 @@ int main(int argc, char **argv_orig, char **envp) { } - afl->current_entry = select_next_queue_entry(afl); + do { + + afl->current_entry = select_next_queue_entry(afl); + + } while (unlikely(afl->current_entry >= afl->queued_items)); + afl->queue_cur = afl->queue_buf[afl->current_entry]; } |