renet/fuzz/fuzz_targets/packet_parser.rs

11 lines
204 B
Rust
Raw Normal View History

2017-06-24 18:10:43 +08:00
#![no_main]
use libfuzzer_sys::fuzz_target;
use smoltcp::wire::*;
2017-06-24 18:10:43 +08:00
fuzz_target!(|data: &[u8]| {
format!(
"{}",
PrettyPrinter::<EthernetFrame<&'static [u8]>>::new("", &data)
);
2017-06-24 18:10:43 +08:00
});