Upgrade AFL to 0.4 with persistent mode fuzzing
[rust-lightning] / fuzz / fuzz_targets / full_stack_target.rs
index 2f8ed52f548de46d28a32768b4912fb211bc9a73..8e3bea9c01dd40d1c6b3144a3954a7814edd4c0d 100644 (file)
@@ -431,11 +431,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);
        });
 }