Upgrade AFL to 0.4 with persistent mode fuzzing
[rust-lightning] / fuzz / fuzz_targets / msg_ping_target.rs
index a2e0d3419920bfa9a00cb632dcfdc81e288ee81a..c9fb341891786c50d9c6db3bf61b7b0ce4797389 100644 (file)
@@ -16,11 +16,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);
        });
 }