X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=fuzz%2Ffuzz_targets%2Fmsg_targets%2Fmsg_target_template.txt;fp=fuzz%2Ffuzz_targets%2Fmsg_targets%2Fmsg_target_template.txt;h=0000000000000000000000000000000000000000;hb=be677dc4f44fb8ec793d9280fada8b9a0ea833f8;hp=2704bcdff9cfbbc1852322216a22c87fb836364b;hpb=cd21a357d85eec93668f2526e300746a921cbad2;p=rust-lightning diff --git a/fuzz/fuzz_targets/msg_targets/msg_target_template.txt b/fuzz/fuzz_targets/msg_targets/msg_target_template.txt deleted file mode 100644 index 2704bcdf..00000000 --- a/fuzz/fuzz_targets/msg_targets/msg_target_template.txt +++ /dev/null @@ -1,43 +0,0 @@ -// This file is auto-generated by gen_target.sh based on msg_target_template.txt -// To modify it, modify msg_target_template.txt and run gen_target.sh instead. - -extern crate lightning; - -use lightning::ln::msgs; - -mod utils; -use utils::VecWriter; - -#[inline] -pub fn do_test(data: &[u8]) { - TEST_MSG!(msgs::MSG_TARGET, dataEXTRA_ARGS); -} - -#[cfg(feature = "afl")] -#[macro_use] extern crate afl; -#[cfg(feature = "afl")] -fn main() { - fuzz!(|data| { - do_test(data); - }); -} - -#[cfg(feature = "honggfuzz")] -#[macro_use] extern crate honggfuzz; -#[cfg(feature = "honggfuzz")] -fn main() { - loop { - fuzz!(|data| { - do_test(data); - }); - } -} - -extern crate hex; -#[cfg(test)] -mod tests { - #[test] - fn duplicate_crash() { - super::do_test(&::hex::decode("00").unwrap()); - } -}