Upgrade AFL to 0.4 with persistent mode fuzzing
[rust-lightning] / fuzz / fuzz_targets / router_target.rs
index 2a7e734ec85035256ed4018f709260819d5ed951..452369e5308dd7b5fcc3203d72792194caa7a59e 100644 (file)
@@ -181,11 +181,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);
        });
 }