Upgrade AFL to 0.4 with persistent mode fuzzing
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_update_fulfill_htlc_target.rs
index 86e99f8c4a0542fbcb8fad9d4deb1c8fdf3c2d6e..3dd87b30ca5387e4acb5ebc0c52611747981017e 100644 (file)
@@ -17,11 +17,11 @@ pub fn do_test(data: &[u8]) {
 }
 
 #[cfg(feature = "afl")]
-extern crate afl;
+#[macro_use] extern crate afl;
 #[cfg(feature = "afl")]
 fn main() {
-       afl::read_stdio_bytes(|data| {
-               do_test(&data);
+       fuzz!(|data| {
+               do_test(data);
        });
 }