aboutsummaryrefslogtreecommitdiff
path: root/azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs')
-rw-r--r--azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs10
1 files changed, 10 insertions, 0 deletions
diff --git a/azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs b/azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs
new file mode 100644
index 00000000..65429b29
--- /dev/null
+++ b/azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs
@@ -0,0 +1,10 @@
+#![no_main]
+
+use std::io::Cursor;
+
+use azalea_protocol::{packets::status::ServerboundStatusPacket, read::deserialize_packet};
+use libfuzzer_sys::fuzz_target;
+
+fuzz_target!(|data: &[u8]| {
+ let _ = deserialize_packet::<ServerboundStatusPacket>(&mut Cursor::new(data));
+});