Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion crates/libafl/src/executors/hooks/inprocess.rs
Original file line number Diff line number Diff line change
Expand Up @@ -496,7 +496,9 @@ impl InProcessExecutorHandlerData {

log::error!("Target crashed!");

if let Some(bsod_info) = bsod_info {
if std::env::var("LIBAFL_MINIBSOD").is_ok()
&& let Some(bsod_info) = bsod_info
{
let bsod = generate_minibsod_to_vec(
bsod_info.signal,
&bsod_info.siginfo,
Expand Down
4 changes: 2 additions & 2 deletions crates/libafl/src/executors/hooks/unix.rs
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,7 @@ pub mod unix_signal_handler {

log::error!("Child crashed!");

{
if std::env::var("LIBAFL_MINIBSOD").is_ok() {
let mut bsod = Vec::new();
{
let mut writer = std::io::BufWriter::new(&mut bsod);
Expand Down Expand Up @@ -278,7 +278,7 @@ pub mod unix_signal_handler {
"We crashed at addr 0x{si_addr:x}, but are not in the target... Bug in the fuzzer? Exiting."
);

{
if std::env::var("LIBAFL_MINIBSOD").is_ok() {
let mut bsod = Vec::new();
{
let mut writer = std::io::BufWriter::new(&mut bsod);
Expand Down
Loading