X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;ds=sidebyside;f=fuzz%2Fsrc%2Fmsg_targets%2Fmsg_error_message.rs;h=7fba2c4dc8e9366e2d6b74138faa5bbde7bafc6d;hb=4395b92cc8bfe0cc803e70bba11f4db58d5d0dbf;hp=16594953eb8ef90ff14301867c4e9a3ecd0663a7;hpb=425e4adbf23e9b67ea03457375812f758e95c9e4;p=rust-lightning diff --git a/fuzz/src/msg_targets/msg_error_message.rs b/fuzz/src/msg_targets/msg_error_message.rs index 16594953..7fba2c4d 100644 --- a/fuzz/src/msg_targets/msg_error_message.rs +++ b/fuzz/src/msg_targets/msg_error_message.rs @@ -1,16 +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 do_test(data: &[u8]) { +pub fn msg_error_message_test(data: &[u8], _out: Out) { test_msg_hole!(msgs::ErrorMessage, data, 32, 2); } #[no_mangle] pub extern "C" fn msg_error_message_run(data: *const u8, datalen: usize) { - do_test(unsafe { std::slice::from_raw_parts(data, datalen) }); + let data = unsafe { std::slice::from_raw_parts(data, datalen) }; + test_msg_hole!(msgs::ErrorMessage, data, 32, 2); }