mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-14 11:08:06 +00:00
added check to silence scan-build
This commit is contained in:
@ -430,6 +430,13 @@ u8 calibrate_case(afl_state_t *afl, struct queue_entry *q, u8 *use_mem,
|
||||
/* OK, let's collect some stats about the performance of this test case.
|
||||
This is used for fuzzing air time calculations in calculate_score(). */
|
||||
|
||||
if (unlikely(!afl->stage_max)) {
|
||||
|
||||
// Pretty sure this cannot happen, yet scan-build complains.
|
||||
FATAL("BUG: stage_max should not be 0 here! Please report this condition.");
|
||||
|
||||
}
|
||||
|
||||
q->exec_us = (stop_us - start_us) / afl->stage_max;
|
||||
q->bitmap_size = count_bytes(afl, afl->fsrv.trace_bits);
|
||||
q->handicap = handicap;
|
||||
|
Reference in New Issue
Block a user