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

use std::io::Cursor;

use azalea_protocol::{packets::game::ServerboundGamePacket, read::deserialize_packet};
use libfuzzer_sys::fuzz_target;

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