Skip to content
This repository was archived by the owner on Mar 22, 2024. It is now read-only.

Commit ee6ffe6

Browse files
Fix the issue with testcase calibration failure not being respected #101 (#102)
* Backport AFLplusplus/AFLplusplus#425 Backport the fix for AFLplusplus/AFLplusplus#425 Bug fond by @dgmelski * better fix
1 parent fec26fa commit ee6ffe6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

afl-fuzz.c

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5073,6 +5073,12 @@ static u8 fuzz_one(char** argv) {
50735073

50745074
if (queue_cur->cal_failed < CAL_CHANCES) {
50755075

5076+
/* Reset exec_cksum to tell calibrate_case to re-execute the testcase
5077+
avoiding the usage of an invalid trace_bits.
5078+
For more info: https://github.com/AFLplusplus/AFLplusplus/pull/425 */
5079+
5080+
queue_cur->exec_cksum = 0;
5081+
50765082
res = calibrate_case(argv, queue_cur, in_buf, queue_cycle - 1, 0);
50775083

50785084
if (res == FAULT_ERROR)

0 commit comments

Comments
 (0)