mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-16 11:58:08 +00:00
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:
@ -747,7 +747,7 @@ typedef struct afl_state {
|
|||||||
up to 256 */
|
up to 256 */
|
||||||
|
|
||||||
unsigned long long int last_avg_exec_update;
|
unsigned long long int last_avg_exec_update;
|
||||||
u32 last_avg_execs;
|
u64 last_avg_execs;
|
||||||
double last_avg_execs_saved;
|
double last_avg_execs_saved;
|
||||||
|
|
||||||
/* foreign sync */
|
/* foreign sync */
|
||||||
|
Reference in New Issue
Block a user