109a426990
Add fuzz tests for p2p crate
14 lines
269 B
Rust
14 lines
269 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::Ping;
|
|
|
|
fuzz_target!(|data: &[u8]| {
|
|
let mut d = data.clone();
|
|
let _t: Result<Ping, ser::Error> = ser::deserialize(&mut d);
|
|
});
|