This commit is contained in:
vanhauser-thc 2024-06-09 12:16:32 +02:00
parent 5331eca5d9
commit 4bb4d4ad00
3 changed files with 11 additions and 8 deletions

View File

@ -23,6 +23,7 @@
- -V timing is now accurately the fuzz time (without syncing), before
long calibration times and syncing could result in now fuzzing being
made when the time was already run out until then, thanks to @eqv!
- fix -n uninstrumented mode when ending fuzzing
- make afl-fuzz use less memory with cmplog and fix a memleak
* afl-cc:
- re-enable i386 support that was accidently disabled

View File

@ -769,8 +769,9 @@ void afl_states_stop(void) {
if (el->fsrv.fsrv_pid > 0) {
kill(el->fsrv.fsrv_pid, el->fsrv.fsrv_kill_signal);
usleep(100);
/* Make sure the forkserver does not end up as zombie. */
waitpid(el->fsrv.fsrv_pid, NULL, 0);
waitpid(el->fsrv.fsrv_pid, NULL, WNOHANG);
}

View File

@ -1469,15 +1469,16 @@ int main(int argc, char **argv_orig, char **envp) {
#endif
configure_afl_kill_signals(&afl->fsrv, afl->afl_env.afl_child_kill_signal,
afl->afl_env.afl_fsrv_kill_signal,
(afl->fsrv.qemu_mode || afl->unicorn_mode
configure_afl_kill_signals(
&afl->fsrv, afl->afl_env.afl_child_kill_signal,
afl->afl_env.afl_fsrv_kill_signal,
(afl->fsrv.qemu_mode || afl->unicorn_mode || afl->non_instrumented_mode
#ifdef __linux__
|| afl->fsrv.nyx_mode
|| afl->fsrv.nyx_mode
#endif
)
? SIGKILL
: SIGTERM);
)
? SIGKILL
: SIGTERM);
setup_signal_handlers();
check_asan_opts(afl);