10 lines
289 B
Rust
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);
|
|
}
|
|
}
|
|
});
|