X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_channel_ready.rs;fp=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_channel_ready.rs;h=e5f3b25c691ab87fb7d242787450eb9d958bc21e;hb=e98f68aee626becf056f443a87207ff6c81003a3;hp=0000000000000000000000000000000000000000;hpb=a534a5e7af4923122a359005a99f01cfb33b451c;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_channel_ready.rs b/fuzz/src/msg_targets/msg_channel_ready.rs new file mode 100644 index 00000000..e5f3b25c --- /dev/null +++ b/fuzz/src/msg_targets/msg_channel_ready.rs @@ -0,0 +1,27 @@ +// This file is Copyright its original authors, visible in version control +// history. +// +// This file is licensed under the Apache License, Version 2.0 or the MIT license +// , at your option. +// You may not use this file except in accordance with one or both of these +// licenses. + +// 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. + +use lightning::ln::msgs; + +use msg_targets::utils::VecWriter; +use utils::test_logger; + +#[inline] +pub fn msg_channel_ready_test(data: &[u8], _out: Out) { + test_msg_simple!(msgs::ChannelReady, data); +} + +#[no_mangle] +pub extern "C" fn msg_channel_ready_run(data: *const u8, datalen: usize) { + let data = unsafe { std::slice::from_raw_parts(data, datalen) }; + test_msg_simple!(msgs::ChannelReady, data); +}