Skip to content

Commit eae8d1b

Browse files
committed
fix: restore honggfuzz persistent mode
1 parent 1f69eb5 commit eae8d1b

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

‎src/lib.rs‎

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,6 +91,16 @@ macro_rules! fuzz {
9191
};
9292
}
9393

94+
#[cfg(feature = "honggfuzz")]
95+
#[doc(hidden)]
96+
pub use honggfuzz::fuzz as honggfuzz_fuzz;
97+
98+
#[macro_export]
9499
#[cfg(all(feature = "honggfuzz", not(feature = "afl")))]
95-
#[doc(inline)]
96-
pub use honggfuzz::fuzz;
100+
macro_rules! fuzz {
101+
( $($x:tt)* ) => {
102+
loop {
103+
$crate::honggfuzz_fuzz!($($x)*);
104+
}
105+
};
106+
}

0 commit comments

Comments
 (0)