1 // This file is auto-generated by gen_target.sh based on msg_target_template.txt
2 // To modify it, modify msg_target_template.txt and run gen_target.sh instead.
4 extern crate lightning;
6 use lightning::util::reset_rng_state;
8 use lightning::ln::msgs::{MsgEncodable, MsgDecodable, Ping};
11 pub fn do_test(data: &[u8]) {
13 if let Ok(msg) = Ping::decode(data) {
18 #[cfg(feature = "afl")]
20 #[cfg(feature = "afl")]
22 afl::read_stdio_bytes(|data| {
27 #[cfg(feature = "honggfuzz")]
28 #[macro_use] extern crate honggfuzz;
29 #[cfg(feature = "honggfuzz")]
42 fn duplicate_crash() {
43 super::do_test(&::hex::decode("00").unwrap());