Skip to content

Commit

Permalink
fix(launcher.rs): hide file output behind appropriate feature flag
Browse files Browse the repository at this point in the history
discovered while debugging AFLplusplus#2111
  • Loading branch information
vringar committed Apr 30, 2024
1 parent ab705b4 commit fad1667
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions libafl/src/events/launcher.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ where
/// The list of cores to run on
cores: &'a Cores,
/// A file name to write all client output to
#[cfg(all(unix, feature = "std", feature = "fork"))]
#[builder(default = None)]
stdout_file: Option<&'a str>,
/// The actual, opened, `stdout_file` - so that we keep it open until the end
Expand All @@ -106,6 +107,7 @@ where
opened_stdout_file: Option<File>,
/// A file name to write all client stderr output to. If not specified, output is sent to
/// `stdout_file`.
#[cfg(all(unix, feature = "std", feature = "fork"))]
#[builder(default = None)]
stderr_file: Option<&'a str>,
/// The actual, opened, `stdout_file` - so that we keep it open until the end
Expand Down
5 changes: 2 additions & 3 deletions libafl_qemu/libafl_qemu_build/src/build.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,8 @@ use std::{
process::Command,
};

use which::which;
use crate::cargo_add_rpath;

use which::which;

const QEMU_URL: &str = "git@git.tu-berlin.de:niklas.jacob/asp-qemu.git";
const QEMU_DIRNAME: &str = "qemu-libafl-bridge";
Expand Down Expand Up @@ -158,7 +157,7 @@ fn configure_qemu(
.arg("--disable-mpath")
.arg("--disable-multiprocess")
.arg("--disable-netmap")
// .arg("--disable-nettle")
// .arg("--disable-nettle")
.arg("--disable-numa")
.arg("--disable-nvmm")
.arg("--disable-opengl")
Expand Down

0 comments on commit fad1667

Please sign in to comment.