mirror of
https://github.com/bspeice/dtparse-fuzzing
synced 2024-12-03 19:58:09 -05:00
Initial restore from dtparse
This commit is contained in:
commit
ee60471858
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
@ -0,0 +1,2 @@
|
|||||||
|
target/
|
||||||
|
Cargo.lock
|
23
Cargo.toml
Normal file
23
Cargo.toml
Normal file
@ -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"
|
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);
|
||||||
|
}
|
||||||
|
}
|
Loading…
Reference in New Issue
Block a user