diff options
| author | mat <git@matdoes.dev> | 2026-01-11 23:01:30 -1030 |
|---|---|---|
| committer | mat <git@matdoes.dev> | 2026-01-11 23:01:30 -1030 |
| commit | 736edae2ad243f6eb3e7b01ca9b6266745cdeb24 (patch) | |
| tree | 3d1ae581c5a1addca1ac48febb59a29de0fb180b /azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs | |
| parent | 1accbac964168af5fa0d87cb170389f0a9d01363 (diff) | |
| download | azalea-drasl-736edae2ad243f6eb3e7b01ca9b6266745cdeb24.tar.xz | |
add fuzzer for azalea-protocol and fix a few panics
Diffstat (limited to 'azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs')
| -rw-r--r-- | azalea-protocol/fuzz/fuzz_targets/serverbound_status.rs | 10 |
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)); +}); |
