Files
grin-node/p2p/fuzz/fuzz_targets/read_peer_error.rs
T
hashmap 109a426990 Add fuzz tests for p2p crate (#1931)
Add fuzz tests for p2p crate
2018-11-05 21:50:16 +01:00

14 lines
279 B
Rust

#![no_main]
#[macro_use]
extern crate libfuzzer_sys;
extern crate grin_core;
extern crate grin_p2p;
use grin_core::ser;
use grin_p2p::msg::PeerError;
fuzz_target!(|data: &[u8]| {
let mut d = data.clone();
let _t: Result<PeerError, ser::Error> = ser::deserialize(&mut d);
});