try to fix forkserver
diff --git a/Makefile b/Makefile
index aaeb136..f615c7d 100644
--- a/Makefile
+++ b/Makefile
@@ -153,8 +153,8 @@
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
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c
index 962ca86..a863efc 100644
--- a/src/afl-forkserver.c
+++ b/src/afl-forkserver.c
@@ -319,10 +319,15 @@
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);
}