Skip to content

Commit

Permalink
Bug 1782502 - Fix incorrect log message when fuzzing with Nyx. r=truber
Browse files Browse the repository at this point in the history
  • Loading branch information
choller committed Aug 6, 2022
1 parent e7c6a06 commit cd5036a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions tools/fuzzing/nyx/Nyx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -189,14 +189,14 @@ void Nyx::handle_event(const char* type, const char* file, int line,
return;
}

// We can have events such as MOZ_CRASH even before we snapshot.
// Output some useful information to make it clear where it happened.
MOZ_FUZZING_NYX_PRINTF(
"[ERROR] PRE SNAPSHOT Nyx::handle_event() called: %s at %s:%d : %s\n",
type, file, line, reason);

if (mInited) {
nyx_handle_event(type, file, line, reason);
} else {
// We can have events such as MOZ_CRASH even before we snapshot.
// Output some useful information to make it clear where it happened.
MOZ_FUZZING_NYX_PRINTF(
"[ERROR] PRE SNAPSHOT Nyx::handle_event() called: %s at %s:%d : %s\n",
type, file, line, reason);
}
}

Expand Down

0 comments on commit cd5036a

Please sign in to comment.