Function network::peer::fuzzing::fuzz

source ·
pub fn fuzz(data: &[u8])
Expand description

Fuzz the Peer actor’s inbound message handling.

For each fuzzer iteration, we spin up a new Peer actor and pipe the raw fuzzer data into it. This mostly tests that the Peer inbound message handling doesn’t panic or leak memory when reading, deserializing, and handling messages from remote peers.