diff options
author | Dominik Maier <domenukk@gmail.com> | 2020-04-10 17:47:22 +0200 |
---|---|---|
committer | Dominik Maier <domenukk@gmail.com> | 2020-04-10 17:47:22 +0200 |
commit | f0f83bab5299098a441af40236f3758171b69889 (patch) | |
tree | 8dabf0609ced7101c467d945bb173be9b180105b /src/afl-fuzz-cmplog.c | |
parent | 6aa6af04acb8f024696e8723e6d73514006b3dd5 (diff) | |
download | afl++-f0f83bab5299098a441af40236f3758171b69889.tar.gz |
resize fix + code format
Diffstat (limited to 'src/afl-fuzz-cmplog.c')
-rw-r--r-- | src/afl-fuzz-cmplog.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/afl-fuzz-cmplog.c b/src/afl-fuzz-cmplog.c index 98f7db05..5ad73539 100644 --- a/src/afl-fuzz-cmplog.c +++ b/src/afl-fuzz-cmplog.c @@ -187,7 +187,8 @@ void init_cmplog_forkserver(afl_state_t *afl) { rlen = 4; u32 timeout_ms = afl->fsrv.exec_tmout * FORK_WAIT_MULT; /* Reuse readfds as exceptfds to see when the child closed the pipe */ - u32 exec_ms = read_timed(afl->cmplog_fsrv_st_fd, &status, rlen, timeout_ms); + u32 exec_ms = read_timed(afl->cmplog_fsrv_st_fd, &status, rlen, timeout_ms, + &afl->stop_soon); if (!exec_ms) { @@ -416,7 +417,8 @@ u8 run_cmplog_target(afl_state_t *afl, u32 timeout) { /* Configure timeout, as requested by user, then wait for child to terminate. */ - exec_ms = read_timed(afl->cmplog_fsrv_st_fd, &status, 4, timeout); + exec_ms = + read_timed(afl->cmplog_fsrv_st_fd, &status, 4, timeout, &afl->stop_soon); if (exec_ms > timeout) { |