Skip to content

Commit

Permalink
Fix WinAFl timeouts loop
Browse files Browse the repository at this point in the history
This commit fixes googleprojectzero#127
  • Loading branch information
netanel01 committed Aug 2, 2018
1 parent d63c48f commit 1a488fa
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion afl-fuzz.c
Original file line number Diff line number Diff line change
Expand Up @@ -2646,7 +2646,9 @@ static u8 run_target(char** argv, u32 timeout) {
//saves us from getting stuck in corner case.
MemoryBarrier();
watchdog_enabled = 0;
return FAULT_NONE;

destroy_target_process(0);
return FAULT_TMOUT;
}
if (result != 'P')
{
Expand Down

0 comments on commit 1a488fa

Please sign in to comment.