diff options
author | Konrad Welc <konrad1331@gmail.com> | 2020-02-27 00:09:26 +0100 |
---|---|---|
committer | Konrad Welc <konrad1331@gmail.com> | 2020-02-27 00:09:26 +0100 |
commit | 3549cbb3a27ca46d81f4783e5b1a71dadcfe2883 (patch) | |
tree | 48b7ac36712d9d6aea63af3be86ac1766aca6a7a /src/afl-fuzz.c | |
parent | 7c17697cae6ff4b28f7e039b53d20c70c558ed7f (diff) | |
download | afl++-3549cbb3a27ca46d81f4783e5b1a71dadcfe2883.tar.gz |
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.
Diffstat (limited to 'src/afl-fuzz.c')
-rw-r--r-- | src/afl-fuzz.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |