Files
grin-node/p2p/fuzz/fuzz_targets/read_peer_addr.rs
T
Antioch Peverell 23cb9e2514 Map peers by ip only (ignoring port unless on loopback ip) (#2540)
* wip

* big refactor, regretting doing this now

* PeerAddr everywhere

* cleanup

* fixup server tests

* peers api working for GET, POST is still WIP

* we can now ban/unban peers by ip only (port optional)
2019-02-18 12:15:32 +00: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::types::PeerAddr;
fuzz_target!(|data: &[u8]| {
let mut d = data.clone();
let _t: Result<PeerAddr, ser::Error> = ser::deserialize(&mut d);
});