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

use std::io::Cursor;

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

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