diff options
author | hexcoder- <heiko@hexco.de> | 2020-11-14 19:38:06 +0100 |
---|---|---|
committer | hexcoder- <heiko@hexco.de> | 2020-11-14 19:38:06 +0100 |
commit | 76c5b8a3b420bfb74191cf4d3e44b067a268dc7f (patch) | |
tree | b6e0258c9269b620cbcc5331333ac0a40ebf409c /src/afl-forkserver.c | |
parent | 40e10895a2b7b69425ee03b2ec6e478184120ee2 (diff) | |
download | afl++-76c5b8a3b420bfb74191cf4d3e44b067a268dc7f.tar.gz |
fix error handling in fauxserver
Diffstat (limited to 'src/afl-forkserver.c')
-rw-r--r-- | src/afl-forkserver.c | 12 |
1 files changed, 2 insertions, 10 deletions
diff --git a/src/afl-forkserver.c b/src/afl-forkserver.c index 266f021b..3814a77e 100644 --- a/src/afl-forkserver.c +++ b/src/afl-forkserver.c @@ -220,15 +220,7 @@ static void afl_fauxsrv_execv(afl_forkserver_t *fsrv, char **argv) { } void (*old_sigchld_handler)(int) = signal(SIGCHLD, SIG_DFL); -#if 0 - WARNF("targetpath=%s", fsrv->target_path); - if (argv) { - for (char *p = argv[0]; p; ++p) { - WARNF(" %s", p); - } - } - WARNF("\n"); -#endif + while (1) { uint32_t was_killed; @@ -1146,7 +1138,7 @@ fsrv_run_result_t afl_fsrv_run_target(afl_forkserver_t *fsrv, u32 timeout, } // Fauxserver should handle this now. - // if (tb4 == EXEC_FAIL_SIG) return FSRV_RUN_ERROR; + if (*(u32 *)fsrv->trace_bits == EXEC_FAIL_SIG) return FSRV_RUN_ERROR; return FSRV_RUN_OK; |