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 | |
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.
-rw-r--r-- | README.md | 2 | ||||
-rw-r--r-- | src/afl-fuzz.c | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/README.md b/README.md index c764d85a..1859eddf 100644 --- a/README.md +++ b/README.md @@ -702,7 +702,7 @@ without feedback, bug reports, or patches from: Nathan Voss Dominik Maier Andrea Biondo Vincent Le Garrec Khaled Yakdan Kuang-che Wu - Josephine Calliotte + Josephine Calliotte Konrad Welc ``` Thank you! 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; } |