diff options
author | van Hauser <vh@thc.org> | 2024-07-10 16:53:39 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-10 16:53:39 +0200 |
commit | a09720665d286bca8e512eb42100beaba56d8812 (patch) | |
tree | 2c389385e7d306c2ad3ab7cb917d7a2a65934673 /src | |
parent | 6f394842bebe9aad5f11fdce1c207b80ba3a91c0 (diff) | |
parent | 02f4f755263bac8a5568e5b65aba940a3e506292 (diff) | |
download | afl++-a09720665d286bca8e512eb42100beaba56d8812.tar.gz |
Merge pull request #2154 from hazohelet/fix-missed-alias-table-recreation
Fix missed updates of alias table when INTROSPECTION is on
Diffstat (limited to 'src')
-rw-r--r-- | src/afl-fuzz.c | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index 8a84d447..8d85aec5 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -2815,7 +2815,7 @@ int main(int argc, char **argv_orig, char **envp) { // (void)nice(-20); // does not improve the speed #ifdef INTROSPECTION - u32 prev_saved_crashes = 0, prev_saved_tmouts = 0; + u32 prev_saved_crashes = 0, prev_saved_tmouts = 0, stat_prev_queued_items = 0; #endif u32 prev_queued_items = 0, runs_in_current_cycle = (u32)-1; u8 skipped_fuzz; @@ -3132,10 +3132,11 @@ int main(int argc, char **argv_orig, char **envp) { } else { - if (unlikely(afl->queued_items > prev_queued_items)) { + if (unlikely(afl->queued_items > stat_prev_queued_items)) { - afl->queue_cur->stats_finds += afl->queued_items - prev_queued_items; - prev_queued_items = afl->queued_items; + afl->queue_cur->stats_finds += + afl->queued_items - stat_prev_queued_items; + stat_prev_queued_items = afl->queued_items; } |