Upgrade AFL to 0.4 with persistent mode fuzzing
[rust-lightning] / fuzz / fuzz_targets / msg_targets / msg_open_channel_target.rs
index 7c1d6f8296bc74c82cf60823f94e2a07f093e99f..737bc2f0c63b40905e8937c199f422dc40ee3188 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);
        });
 }