From df94ad6fb183c9167aac2904d8aa9b098ddf55a6 Mon Sep 17 00:00:00 2001 From: Patrick Maslana Date: Wed, 25 Oct 2023 16:32:22 -0700 Subject: [PATCH] Create fuzz directory --- fuzz/.gitignore | 4 ++++ fuzz/Cargo.toml | 27 +++++++++++++++++++++++++++ fuzz/fuzz_targets/fuzz_target_1.rs | 7 +++++++ fuzz/test | 0 4 files changed, 38 insertions(+) create mode 100644 fuzz/.gitignore create mode 100644 fuzz/Cargo.toml create mode 100644 fuzz/fuzz_targets/fuzz_target_1.rs delete mode 100644 fuzz/test diff --git a/fuzz/.gitignore b/fuzz/.gitignore new file mode 100644 index 000000000..1a45eee77 --- /dev/null +++ b/fuzz/.gitignore @@ -0,0 +1,4 @@ +target +corpus +artifacts +coverage diff --git a/fuzz/Cargo.toml b/fuzz/Cargo.toml new file mode 100644 index 000000000..afa7b8186 --- /dev/null +++ b/fuzz/Cargo.toml @@ -0,0 +1,27 @@ +[package] +name = "clvm_tools_rs-fuzz" +version = "0.0.0" +publish = false +edition = "2018" + +[package.metadata] +cargo-fuzz = true + +[dependencies] +libfuzzer-sys = "0.4" + +[dependencies.clvm_tools_rs] +path = ".." + +# Prevent this from interfering with workspaces +[workspace] +members = ["."] + +[profile.release] +debug = 1 + +[[bin]] +name = "fuzz_target_1" +path = "fuzz_targets/fuzz_target_1.rs" +test = false +doc = false diff --git a/fuzz/fuzz_targets/fuzz_target_1.rs b/fuzz/fuzz_targets/fuzz_target_1.rs new file mode 100644 index 000000000..43a88c14f --- /dev/null +++ b/fuzz/fuzz_targets/fuzz_target_1.rs @@ -0,0 +1,7 @@ +#![no_main] + +use libfuzzer_sys::fuzz_target; + +fuzz_target!(|data: &[u8]| { + // fuzzed code goes here +}); diff --git a/fuzz/test b/fuzz/test deleted file mode 100644 index e69de29bb..000000000