Files
EasyDNS/fuzz/fuzz_targets/zonefile.rs
T
2026-11-22 14:21:54 +01:00

10 lines
289 B
Rust

#![no_main]
use libfuzzer_sys::fuzz_target;
fuzz_target!(|data: &[u8]| {
if let Ok(s) = std::str::from_utf8(data) {
if let Ok(origin) = dns_core::proto::rr::Name::from_ascii("example.") {
let _ = dns_core::zonefile::parse_str(s, &origin, None);
}
}
});