Skip to content

Commit

Permalink
Hungfuzz needs same stuff as afl?
Browse files Browse the repository at this point in the history
  • Loading branch information
dpc committed Oct 13, 2019
1 parent 97bd569 commit 8ef77df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions fuzz/fuzz_targets/smallvec_ops.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,9 @@ extern crate honggfuzz;
fn main() {
loop {
fuzz!(|data| {
// Remove the panic hook so we can actually catch panic
// See https://github.com/rust-fuzz/afl.rs/issues/150
std::panic::set_hook(Box::new(|_| {}));
do_test_all(data);
});
}
Expand Down

0 comments on commit 8ef77df

Please sign in to comment.