mirror of
https://github.com/AFLplusplus/AFLplusplus.git
synced 2025-06-17 04:18:06 +00:00
Support AFL_NO_FORKSRV env-var in afl-tmin, afl-showmap, and afl-cmin (#1017)
* Support AFL_NO_FORKSRV env-var * format * showmap support * showmap support * help messages now show envar support * formatting * formatting Co-authored-by: Jesse Hertz <jesse_hertz@apple.com>
This commit is contained in:
@ -853,7 +853,8 @@ static void usage(u8 *argv0) {
|
||||
"AFL_PRELOAD: LD_PRELOAD / DYLD_INSERT_LIBRARIES settings for target\n"
|
||||
"AFL_PRINT_FILENAMES: If set, the filename currently processed will be "
|
||||
"printed to stdout\n"
|
||||
"AFL_QUIET: do not print extra informational output\n",
|
||||
"AFL_QUIET: do not print extra informational output\n"
|
||||
"AFL_NO_FORKSRV: run target via execve instead of using the forkserver\n",
|
||||
argv0, MEM_LIMIT, doc_path);
|
||||
|
||||
exit(1);
|
||||
@ -1097,6 +1098,11 @@ int main(int argc, char **argv_orig, char **envp) {
|
||||
|
||||
check_environment_vars(envp);
|
||||
|
||||
if (getenv("AFL_NO_FORKSRV")) { /* if set, use the fauxserver */
|
||||
fsrv->use_fauxsrv = true;
|
||||
|
||||
}
|
||||
|
||||
if (getenv("AFL_DEBUG")) {
|
||||
|
||||
DEBUGF("");
|
||||
|
Reference in New Issue
Block a user