mirror of
https://github.com/bspeice/dtparse-fuzzing
synced 2025-07-01 22:06:52 -04:00
Initial restore from dtparse
This commit is contained in:
10
fuzzers/fuzzer_script_1.rs
Normal file
10
fuzzers/fuzzer_script_1.rs
Normal file
@ -0,0 +1,10 @@
|
||||
#![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) = std::str::from_utf8(data) {
|
||||
parse(s);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user