mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-11 17:51:32 +00:00
try to fix forkserver
This commit is contained in:
4
Makefile
4
Makefile
@ -153,8 +153,8 @@ endif
|
||||
|
||||
ifdef ASAN_BUILD
|
||||
$(info Compiling ASAN version of binaries)
|
||||
CFLAGS+=-fsanitize=address
|
||||
LDFLAGS+=-fsanitize=address
|
||||
CFLAGS+=-fsanitize=address -fstack-protector-strong
|
||||
LDFLAGS+=-fsanitize=address -fstack-protector-strong
|
||||
endif
|
||||
|
||||
ifdef PROFILING
|
||||
|
@ -319,10 +319,15 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv) {
|
||||
u32 time = read_timed(fsrv->fsrv_st_fd, &status, rlen,
|
||||
fsrv->exec_tmout * FORK_WAIT_MULT);
|
||||
|
||||
if (!time) {
|
||||
if (time > fsrv->exec_tmout * FORK_WAIT_MULT) {
|
||||
|
||||
fsrv->child_timed_out = 1;
|
||||
kill(fsrv->child_pid, SIGKILL);
|
||||
kill(fsrv->fsrv_pid, SIGKILL);
|
||||
|
||||
}
|
||||
if (!time) {
|
||||
|
||||
kill(fsrv->fsrv_pid, SIGKILL);
|
||||
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user