1 // This file is auto-generated by gen_target.sh based on target_template.txt
2 // To modify it, modify target_template.txt and run gen_target.sh instead.
4 //Uncomment this for libfuzzer builds:
7 extern crate lightning_fuzz;
8 use lightning_fuzz::msg_targets::msg_closing_signed::*;
12 #[cfg(feature = "afl")]
13 #[macro_use] extern crate afl;
14 #[cfg(feature = "afl")]
17 msg_closing_signed_run(data.as_ptr(), data.len());
21 #[cfg(feature = "honggfuzz")]
22 #[macro_use] extern crate honggfuzz;
23 #[cfg(feature = "honggfuzz")]
27 msg_closing_signed_run(data.as_ptr(), data.len());
32 #[cfg(feature = "libfuzzer_fuzz")]
33 #[macro_use] extern crate libfuzzer_sys;
34 #[cfg(feature = "libfuzzer_fuzz")]
35 fuzz_target!(|data: &[u8]| {
36 msg_closing_signed_run(data.as_ptr(), data.len());
39 #[cfg(feature = "stdin_fuzz")]
41 let mut data = Vec::with_capacity(8192);
42 std::io::stdin().read_to_end(&mut data).unwrap();
43 msg_closing_signed_run(data.as_ptr(), data.len());