From 6edc3b51ba81d577eeb4a64299916c1eaadfdd70 Mon Sep 17 00:00:00 2001 From: vanhauser-thc Date: Sun, 18 Aug 2024 16:06:57 +0200 Subject: fix AFL_OLD_FORKSERVER --- instrumentation/afl-compiler-rt.o.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'instrumentation/afl-compiler-rt.o.c') diff --git a/instrumentation/afl-compiler-rt.o.c b/instrumentation/afl-compiler-rt.o.c index 6e04ae47..0da689b2 100644 --- a/instrumentation/afl-compiler-rt.o.c +++ b/instrumentation/afl-compiler-rt.o.c @@ -886,11 +886,11 @@ static void __afl_start_forkserver(void) { /* Phone home and tell the parent that we're OK. If parent isn't there, assume we're not running in forkserver mode and just execute program. */ - // return because possible non-forkserver usage - if (write(FORKSRV_FD + 1, msg, 4) != 4) { return; } - if (!__afl_old_forkserver) { + // return because possible non-forkserver usage + if (write(FORKSRV_FD + 1, msg, 4) != 4) { return; } + if (read(FORKSRV_FD, reply, 4) != 4) { _exit(1); } if (tmp != status2) { -- cgit 1.4.1