From 3549cbb3a27ca46d81f4783e5b1a71dadcfe2883 Mon Sep 17 00:00:00 2001 From: Konrad Welc Date: Thu, 27 Feb 2020 00:09:26 +0100 Subject: Fix hanging fork and child with -V -E If we let multiple fuzzers end with -V or -E option, it will cause it to think we are still occupying the cores, even if they are free, once we try to run another job it would return an error that no free nodes are available. This change fixes that problem. --- src/afl-fuzz.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/afl-fuzz.c') diff --git a/src/afl-fuzz.c b/src/afl-fuzz.c index cc895f74..f68f063d 100644 --- a/src/afl-fuzz.c +++ b/src/afl-fuzz.c @@ -1024,6 +1024,7 @@ int main(int argc, char** argv, char** envp) { if (most_time * 1000 < cur_ms_lv - start_time) { most_time_key = 2; + stop_soon = 2; break; } @@ -1035,6 +1036,7 @@ int main(int argc, char** argv, char** envp) { if (most_execs <= total_execs) { most_execs_key = 2; + stop_soon = 2; break; } -- cgit 1.4.1