10
0
Fork 0
mirror of https://github.com/ZeusWPI/ZNS.git synced 2024-10-30 05:24:26 +01:00
zns/fuzz/fuzz_targets/parser.rs

15 lines
247 B
Rust
Raw Normal View History

2024-10-09 19:23:49 +02:00
#![no_main]
use libfuzzer_sys::fuzz_target;
2024-10-29 22:18:41 +01:00
use zns::{
parser::{FromBytes},
reader::Reader,
structs::Message,
};
2024-10-09 19:23:49 +02:00
fuzz_target!(|data: &[u8]| {
let mut reader = Reader::new(data);
let _ = Message::from_bytes(&mut reader);
});
2024-10-29 22:18:41 +01:00