From c4a9b5f3737e9ecda66a54ccbc3642259a9682f1 Mon Sep 17 00:00:00 2001 From: Patrick Gersch Date: Tue, 4 Oct 2022 20:32:33 +0200 Subject: [PATCH] Changes for Linux without fork feature (#814) * Minor changes for linux without fork feature * cargo fmt --- libafl/src/bolts/launcher.rs | 1 + libafl_qemu/src/executor.rs | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/libafl/src/bolts/launcher.rs b/libafl/src/bolts/launcher.rs index a56aa483f9..c42dbb4bf0 100644 --- a/libafl/src/bolts/launcher.rs +++ b/libafl/src/bolts/launcher.rs @@ -264,6 +264,7 @@ where // I am a broker // before going to the broker loop, spawn n clients + #[cfg(windows)] if self.stdout_file.is_some() { println!("Child process file stdio is not supported on Windows yet. Dumping to stdout instead..."); } diff --git a/libafl_qemu/src/executor.rs b/libafl_qemu/src/executor.rs index 71e7dfa3e4..6e1b292286 100644 --- a/libafl_qemu/src/executor.rs +++ b/libafl_qemu/src/executor.rs @@ -1,10 +1,12 @@ //! A `QEMU`-based executor for binary-only instrumentation in `LibAFL` use core::fmt::{self, Debug, Formatter}; +#[cfg(feature = "fork")] +use libafl::bolts::shmem::ShMemProvider; #[cfg(feature = "fork")] use libafl::executors::InProcessForkExecutor; + use libafl::{ - bolts::shmem::ShMemProvider, events::{EventFirer, EventRestarter}, executors::{Executor, ExitKind, HasObservers, InProcessExecutor}, feedbacks::Feedback,