Initial restore from dtparse
commit
ee60471858
|
@ -0,0 +1,2 @@
|
||||||
|
target/
|
||||||
|
Cargo.lock
|
|
@ -0,0 +1,23 @@
|
||||||
|
|
||||||
|
[package]
|
||||||
|
name = "dtparse-fuzz"
|
||||||
|
version = "0.0.1"
|
||||||
|
authors = ["Automatically generated"]
|
||||||
|
publish = false
|
||||||
|
|
||||||
|
[package.metadata]
|
||||||
|
cargo-fuzz = true
|
||||||
|
|
||||||
|
[dependencies]
|
||||||
|
dtparse = "0.9"
|
||||||
|
|
||||||
|
[dependencies.libfuzzer-sys]
|
||||||
|
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
|
||||||
|
|
||||||
|
# Prevent this from interfering with workspaces
|
||||||
|
[workspace]
|
||||||
|
members = ["."]
|
||||||
|
|
||||||
|
[[bin]]
|
||||||
|
name = "fuzzer_script_1"
|
||||||
|
path = "fuzzers/fuzzer_script_1.rs"
|
|
@ -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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue