diff options
Diffstat (limited to 'azalea-protocol/fuzz/fuzz_targets/clientbound_handshake.rs')
| -rw-r--r-- | azalea-protocol/fuzz/fuzz_targets/clientbound_handshake.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/azalea-protocol/fuzz/fuzz_targets/clientbound_handshake.rs b/azalea-protocol/fuzz/fuzz_targets/clientbound_handshake.rs new file mode 100644 index 00000000..84061965 --- /dev/null +++ b/azalea-protocol/fuzz/fuzz_targets/clientbound_handshake.rs @@ -0,0 +1,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)); +}); |
