Fix overflow in execs_ps_last_min calculation

last_avg_execs should be 64bit, same as total_execs, otherwise there is an overflow once total_execs reaches 2^32. Which can happen in practice for long-running fuzzing campaigns.
This commit is contained in:
Martin Leitner-Ankerl
2024-12-19 07:56:15 +01:00
parent af44b07b31
commit 99402aa31c

View File

@ -747,7 +747,7 @@ typedef struct afl_state {
up to 256 */
unsigned long long int last_avg_exec_update;
u32 last_avg_execs;
u64 last_avg_execs;
double last_avg_execs_saved;
/* foreign sync */