Initialise fuzzing for ssz
This commit is contained in:
parent
e9f4cc134e
commit
3517ef6513
4
eth2/utils/ssz/fuzz/.gitignore
vendored
Normal file
4
eth2/utils/ssz/fuzz/.gitignore
vendored
Normal file
@ -0,0 +1,4 @@
|
||||
|
||||
target
|
||||
corpus
|
||||
artifacts
|
22
eth2/utils/ssz/fuzz/Cargo.toml
Normal file
22
eth2/utils/ssz/fuzz/Cargo.toml
Normal file
@ -0,0 +1,22 @@
|
||||
|
||||
[package]
|
||||
name = "ssz-fuzz"
|
||||
version = "0.0.1"
|
||||
authors = ["Automatically generated"]
|
||||
publish = false
|
||||
|
||||
[package.metadata]
|
||||
cargo-fuzz = true
|
||||
|
||||
[dependencies.ssz]
|
||||
path = ".."
|
||||
[dependencies.libfuzzer-sys]
|
||||
git = "https://github.com/rust-fuzz/libfuzzer-sys.git"
|
||||
|
||||
# Prevent this from interfering with workspaces
|
||||
[workspace]
|
||||
members = ["."]
|
||||
|
||||
[[bin]]
|
||||
name = "fuzz_target_1"
|
||||
path = "fuzz_targets/fuzz_target_1.rs"
|
7
eth2/utils/ssz/fuzz/fuzz_targets/fuzz_target_1.rs
Normal file
7
eth2/utils/ssz/fuzz/fuzz_targets/fuzz_target_1.rs
Normal file
@ -0,0 +1,7 @@
|
||||
#![no_main]
|
||||
#[macro_use] extern crate libfuzzer_sys;
|
||||
extern crate ssz;
|
||||
|
||||
fuzz_target!(|data: &[u8]| {
|
||||
// fuzzed code goes here
|
||||
});
|
Loading…
Reference in New Issue
Block a user