1
0
mirror of https://github.com/bspeice/dtparse synced 2024-11-13 17:38:09 -05:00
dtparse/fuzz/fuzzers/fuzzer_script_1.rs
2018-07-18 22:27:29 -04:00

11 lines
226 B
Rust

#![no_main]
extern crate libfuzzer_sys;
extern crate dtparse;
use dtparse::parse;
#[export_name="rust_fuzzer_test_input"]
pub extern fn go(data: &[u8]) {
if let Ok(s) = sd::str::from_utf8(data) {
parse(s);
}
}