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::ln::msgs;
7 use lightning::util::reset_rng_state;
9 use lightning::ln::msgs::{MsgEncodable, MsgDecodable};
12 use utils::slice_to_be16;
15 pub fn do_test(data: &[u8]) {
19 test_msg!(msgs::AcceptChannel, data, read_pos);
23 #[cfg(feature = "afl")]
25 #[cfg(feature = "afl")]
27 afl::read_stdio_bytes(|data| {
32 #[cfg(feature = "honggfuzz")]
33 #[macro_use] extern crate honggfuzz;
34 #[cfg(feature = "honggfuzz")]
45 use utils::extend_vec_from_hex;
47 fn duplicate_crash() {
48 let mut a = Vec::new();
49 extend_vec_from_hex("00", &mut a);