X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Ffuzz_targets%2Fmsg_targets%2Fmsg_funding_locked_target.rs;h=cd1e897419cd182dbfbc68655f795c0e79d9d727;hb=56f16eaa4df0de13a59f6524562a8d8a45b6c2ea;hp=e9e6fec550123f45631456d7fe976537beb35a9a;hpb=4c44b787f1ffcab8ceec47a4973915ec24ba590e;p=rust-lightning diff --git a/fuzz/fuzz_targets/msg_targets/msg_funding_locked_target.rs b/fuzz/fuzz_targets/msg_targets/msg_funding_locked_target.rs index e9e6fec5..cd1e8974 100644 --- a/fuzz/fuzz_targets/msg_targets/msg_funding_locked_target.rs +++ b/fuzz/fuzz_targets/msg_targets/msg_funding_locked_target.rs @@ -4,24 +4,21 @@ extern crate lightning; use lightning::ln::msgs; -use lightning::util::reset_rng_state; - -use lightning::ln::msgs::{MsgEncodable, MsgDecodable}; mod utils; +use utils::VecWriter; #[inline] pub fn do_test(data: &[u8]) { - reset_rng_state(); test_msg!(msgs::FundingLocked, data); } #[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); }); }