Skip to content

Commit

Permalink
Rename fuzzing crate
Browse files Browse the repository at this point in the history
  • Loading branch information
sgwilym committed Aug 6, 2024
1 parent 0634ea1 commit fc65876
Show file tree
Hide file tree
Showing 53 changed files with 64 additions and 64 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion fuzz/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[package]
name = "willow-data-model-fuzz"
name = "willow-fuzz"
version = "0.0.0"
publish = false
edition = "2021"
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/area_rel_area_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use earthstar::identity_id::IdentityIdentifier as IdentityId;
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::grouping::Area;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::encode::relative_encoding_roundtrip;

fuzz_target!(|data: (
Area<16, 16, 16, IdentityId>,
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/area_rel_area_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use earthstar::identity_id::IdentityIdentifier as IdentityId;
use libfuzzer_sys::fuzz_target;
use willow_data_model::grouping::Area;
use willow_data_model_fuzz::encode::relative_encoding_random_less_strict;
use willow_fuzz::encode::relative_encoding_random_less_strict;

fuzz_target!(|data: (&[u8], Area<16, 16, 16, IdentityId>)| {
// fuzzed code goes here
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::encoding_roundtrip;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::encoding_roundtrip;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(|data: (
Entry<3, 3, 3, EsNamespaceId, IdentityId, FakePayloadDigest>,
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/entry_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use willow_data_model::Entry;

use libfuzzer_sys::fuzz_target;
use willow_data_model_fuzz::{encode::encoding_random, placeholder_params::FakePayloadDigest};
use willow_fuzz::{encode::encoding_random, placeholder_params::FakePayloadDigest};

fuzz_target!(|data: &[u8]| {
smol::block_on(async {
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_rel_entry_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(|data: (
Entry<16, 16, 16, EsNamespaceId, IdentityId, FakePayloadDigest>,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_rel_entry_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use earthstar::identity_id::IdentityIdentifier as IdentityId;
use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use libfuzzer_sys::fuzz_target;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_random_less_strict;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_random_less_strict;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(|data: (
&[u8],
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_rel_namespace_area_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::grouping::Area;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(|data: (
Entry<16, 16, 16, EsNamespaceId, IdentityId, FakePayloadDigest>,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_rel_namespace_area_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use libfuzzer_sys::fuzz_target;
use willow_data_model::grouping::Area;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_random_less_strict;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_random_less_strict;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(
|data: (&[u8], (EsNamespaceId, Area<16, 16, 16, IdentityId>))| {
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/entry_rel_namespace_range_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@ use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::grouping::Range3d;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(|data: (
Entry<16, 16, 16, EsNamespaceId, IdentityId, FakePayloadDigest>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ use earthstar::namespace_id::NamespaceIdentifier as EsNamespaceId;
use libfuzzer_sys::fuzz_target;
use willow_data_model::grouping::Range3d;
use willow_data_model::Entry;
use willow_data_model_fuzz::encode::relative_encoding_random_less_strict;
use willow_data_model_fuzz::placeholder_params::FakePayloadDigest;
use willow_fuzz::encode::relative_encoding_random_less_strict;
use willow_fuzz::placeholder_params::FakePayloadDigest;

fuzz_target!(
|data: (&[u8], (EsNamespaceId, Range3d<16, 16, 16, IdentityId>))| {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/mc_capability_append_delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use meadowcap::{Delegation, InvalidDelegationError, McCapability};
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: (
Delegation<16, 16, 16, SillyPublicKey, SillySig>,
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/mc_capability_delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use libfuzzer_sys::fuzz_target;
use meadowcap::{FailedDelegationError, McCapability};
use willow_data_model::grouping::Area;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySecret, SillySig};
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySecret, SillySig};

fuzz_target!(|data: (
SillySecret,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/mc_capability_rel_area_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ use libfuzzer_sys::fuzz_target;
use meadowcap::McCapability;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::grouping::Area;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: (
McCapability<3, 3, 3, SillyPublicKey, SillySig, SillyPublicKey, SillySig>,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/mc_capability_rel_area_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use libfuzzer_sys::fuzz_target;
use meadowcap::McCapability;
use willow_data_model::grouping::Area;
use willow_data_model_fuzz::encode::relative_encoding_random;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::encode::relative_encoding_random;
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: (&[u8], Area<3, 3, 3, SillyPublicKey>,)| {
let (random_bytes, out) = data;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/mc_is_authorised_write.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use ufotofu::sync::consumer::IntoVec;
use willow_data_model::encoding::sync::Encodable;
use willow_data_model::Entry;
use willow_data_model::IsAuthorisedWrite;
use willow_data_model_fuzz::{
use willow_fuzz::{
placeholder_params::FakePayloadDigest,
silly_sigs::{SillyPublicKey, SillySig},
};
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use meadowcap::{McSubspaceCapability, SubspaceDelegation};
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: (
SubspaceDelegation<SillyPublicKey, SillySig>,
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/mc_subspace_capability_delegation.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use meadowcap::McSubspaceCapability;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySecret, SillySig};
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySecret, SillySig};

fuzz_target!(|data: (
SillySecret,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/mc_subspace_capability_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
use libfuzzer_sys::fuzz_target;
use meadowcap::McSubspaceCapability;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model_fuzz::encode::encoding_roundtrip;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::encode::encoding_roundtrip;
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: (
McSubspaceCapability<SillyPublicKey, SillySig, SillyPublicKey, SillySig>,
Expand Down
4 changes: 2 additions & 2 deletions fuzz/fuzz_targets/mc_subspace_capability_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@

use libfuzzer_sys::fuzz_target;
use meadowcap::McSubspaceCapability;
use willow_data_model_fuzz::encode::encoding_random;
use willow_data_model_fuzz::silly_sigs::{SillyPublicKey, SillySig};
use willow_fuzz::encode::encoding_random;
use willow_fuzz::silly_sigs::{SillyPublicKey, SillySig};

fuzz_target!(|data: &[u8]| {
smol::block_on(async {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

fuzz_target!(|data: (CreatePath, CreatePath)| {
let (cp1, cp2) = data;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

fuzz_target!(|data: (CreatePath, CreatePath)| {
let (cp1, cp2) = data;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

fuzz_target!(|data: (CreatePath, CreatePath)| {
let (cp1, cp2) = data;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path4.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

fuzz_target!(|data: (CreatePath, CreatePath)| {
let (cp1, cp2) = data;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_roundtrip;
use willow_fuzz::encode::encoding_roundtrip;

const MCL: usize = 300;
const MCC: usize = 300;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_roundtrip;
use willow_fuzz::encode::encoding_roundtrip;

const MCL: usize = 2;
const MCC: usize = 3;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_roundtrip;
use willow_fuzz::encode::encoding_roundtrip;

const MCL: usize = 4;
const MCC: usize = 4;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_random;
use willow_fuzz::encode::encoding_random;

const MCL: usize = 300;
const MCC: usize = 300;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding_random2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_random;
use willow_fuzz::encode::encoding_random;

const MCL: usize = 2;
const MCC: usize = 3;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_encoding_random3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::encoding_random;
use willow_fuzz::encode::encoding_random;

const MCL: usize = 4;
const MCC: usize = 4;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;

use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::encode::relative_encoding_roundtrip;

const MCL: usize = 300;
const MCC: usize = 300;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;

use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::encode::relative_encoding_roundtrip;

const MCL: usize = 2;
const MCC: usize = 3;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;

use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::encode::relative_encoding_roundtrip;

const MCL: usize = 4;
const MCC: usize = 4;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_random;
use willow_fuzz::encode::relative_encoding_random;

const MCL: usize = 300;
const MCC: usize = 300;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding_random2.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_random;
use willow_fuzz::encode::relative_encoding_random;

const MCL: usize = 2;
const MCC: usize = 3;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_rel_path_encoding_random3.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
use willow_data_model::Path;
use willow_data_model_fuzz::encode::relative_encoding_random;
use willow_fuzz::encode::relative_encoding_random;

const MCL: usize = 4;
const MCC: usize = 4;
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_successor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

// MCL, MCC, MPL
fuzz_target!(|data: (PathRc<2, 3, 3>, PathRc<2, 3, 3>)| {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_successor_even_more.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

// MCL, MCC, MPL
fuzz_target!(|data: (PathRc<4, 4, 16>, PathRc<4, 4, 16>)| {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/path_successor_more.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

use libfuzzer_sys::fuzz_target;
// use willow_data_model::path::*;
use willow_data_model_fuzz::path::*;
use willow_fuzz::path::*;

// MCL, MCC, MPL
fuzz_target!(|data: (PathRc<3, 3, 3>, PathRc<3, 3, 3>)| {
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/range3d_rel_rang3d_encoding_random.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
use earthstar::identity_id::IdentityIdentifier as IdentityId;
use libfuzzer_sys::fuzz_target;
use willow_data_model::grouping::Range3d;
use willow_data_model_fuzz::encode::relative_encoding_random_less_strict;
use willow_fuzz::encode::relative_encoding_random_less_strict;

fuzz_target!(|data: (&[u8], Range3d<16, 16, 16, IdentityId>)| {
// fuzzed code goes here
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/range3d_rel_range3d_encoding.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ use earthstar::identity_id::IdentityIdentifier as IdentityId;
use libfuzzer_sys::fuzz_target;
use ufotofu::local_nb::consumer::TestConsumer;
use willow_data_model::grouping::Range3d;
use willow_data_model_fuzz::encode::relative_encoding_roundtrip;
use willow_fuzz::encode::relative_encoding_roundtrip;

fuzz_target!(|data: (
Range3d<16, 16, 16, IdentityId>,
Expand Down
Loading

0 comments on commit fc65876

Please sign in to comment.