aboutsummaryrefslogtreecommitdiff
path: root/src/afl-showmap.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2022-11-02 15:21:46 +0100
committervanhauser-thc <vh@thc.org>2022-11-02 15:21:46 +0100
commit21372473a1ae6fe8873206805eb2ffad100d97e2 (patch)
tree1ce9734506c8a96756cd0329fed3172d6bc1143a /src/afl-showmap.c
parenta8c1ba0d59e1e52373b482611cf0657d124917c7 (diff)
downloadAFLplusplus-21372473a1ae6fe8873206805eb2ffad100d97e2.tar.gz
warn for -t none
Diffstat (limited to 'src/afl-showmap.c')
-rw-r--r--src/afl-showmap.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/afl-showmap.c b/src/afl-showmap.c
index 0de798fe..93339a8f 100644
--- a/src/afl-showmap.c
+++ b/src/afl-showmap.c
@@ -518,6 +518,7 @@ static void showmap_run_target(afl_forkserver_t *fsrv, char **argv) {
signal(SIGALRM, kill_child);
setitimer(ITIMER_REAL, &it, NULL);
+
}
if (waitpid(fsrv->child_pid, &status, 0) <= 0) { FATAL("waitpid() failed"); }
@@ -1016,10 +1017,15 @@ int main(int argc, char **argv_orig, char **envp) {
}
} else {
+
// The forkserver code does not have a way to completely
// disable the timeout, so we'll use a very, very long
// timeout instead.
+ WARNF(
+ "Setting an execution timeout of 120 seconds ('none' is not "
+ "allowed).");
fsrv->exec_tmout = 120 * 1000;
+
}
break;