aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/fuzz/fuzz_targets/serverbound_handshake.rs
blob: be3fca351f958c43922bab345855515071c3e95d (plain)
1
2
3
4
5
6
7
8
9
10
#![no_main]

use std::io::Cursor;

use azalea_protocol::{packets::handshake::ServerboundHandshakePacket, read::deserialize_packet};
use libfuzzer_sys::fuzz_target;

fuzz_target!(|data: &[u8]| {
    let _ = deserialize_packet::<ServerboundHandshakePacket>(&mut Cursor::new(data));
});