diff options
| author | vanhauser-thc <vh@thc.org> | 2021-05-17 16:52:52 +0200 |
|---|---|---|
| committer | vanhauser-thc <vh@thc.org> | 2021-05-17 16:52:52 +0200 |
| commit | 47e22e8d8d383078989906c6fe54a9ec4deff8c1 (patch) | |
| tree | ee9bf2e2cb1d6417a71aaae3394e07e11076bd0e /src | |
| parent | a3fffac90cb96736395aa9764f4cc5aa20e6cd71 (diff) | |
| download | afl++-47e22e8d8d383078989906c6fe54a9ec4deff8c1.tar.gz | |
no core dumps
Diffstat (limited to 'src')
| -rw-r--r-- | src/afl-forkserver.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index a07e78b4..0286ab47 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -451,8 +451,12 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv, /* Dumping cores is slow and can lead to anomalies if SIGKILL is delivered before the dump is complete. */ - // r.rlim_max = r.rlim_cur = 0; - // setrlimit(RLIMIT_CORE, &r); /* Ignore errors */ + if (!fsrv->debug) { + + r.rlim_max = r.rlim_cur = 0; + setrlimit(RLIMIT_CORE, &r); /* Ignore errors */ + + } /* Isolate the process and configure standard descriptors. If out_file is specified, stdin is /dev/null; otherwise, out_fd is cloned instead. */ |
