Skip to content

Commit

Permalink
Fix the issue with testcase calibration failure not being respected g…
Browse files Browse the repository at this point in the history
…oogle#101 (google#102)

* Backport AFLplusplus/AFLplusplus#425

Backport the fix for AFLplusplus/AFLplusplus#425
Bug fond by @dgmelski

* better fix
  • Loading branch information
andreafioraldi authored Jun 26, 2020
1 parent fec26fa commit ee6ffe6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -5073,6 +5073,12 @@ static u8 fuzz_one(char** argv) {

if (queue_cur->cal_failed < CAL_CHANCES) {

/* Reset exec_cksum to tell calibrate_case to re-execute the testcase
avoiding the usage of an invalid trace_bits.
For more info: https://github.com/AFLplusplus/AFLplusplus/pull/425 */

queue_cur->exec_cksum = 0;

res = calibrate_case(argv, queue_cur, in_buf, queue_cycle - 1, 0);

if (res == FAULT_ERROR)
Expand Down

0 comments on commit ee6ffe6

Please sign in to comment.