qemu debug

This commit is contained in:
van Hauser
2020-06-05 09:42:17 +02:00
parent a1beb72cad
commit e01cad2f7d
4 changed files with 12 additions and 9 deletions

View File

@ -277,8 +277,8 @@ static void report_error_and_exit(int error) {
break;
case FS_ERROR_MMAP:
FATAL(
"the fuzzing target reports that the mmap() call to the shared memory "
"failed.");
"the fuzzing target reports that the mmap() call to the shared "
"memory failed.");
break;
default:
FATAL("unknown error code %u from fuzzing target!", error);
@ -488,17 +488,17 @@ void afl_fsrv_start(afl_forkserver_t *fsrv, char **argv,
if (!be_quiet) { OKF("All right - fork server is up."); }
if (getenv("AFL_DEBUG")) {
ACTF("Extended forkserver functions received (%08x).", status);
}
if ((status & FS_OPT_ERROR) == FS_OPT_ERROR)
report_error_and_exit(FS_OPT_GET_ERROR(status));
if ((status & FS_OPT_ENABLED) == FS_OPT_ENABLED) {
if (getenv("AFL_DEBUG")) {
ACTF("Extended forkserver functions received (%08x).", status);
}
if ((status & FS_OPT_SNAPSHOT) == FS_OPT_SNAPSHOT) {
fsrv->snapshot = 1;