diff --git a/polkadot/Cargo.lock b/polkadot/Cargo.lock index 6417f06d3a277dbd658f3184c2c9b00439722906..7e6f6123422eaef8462246a4c1070cecfff9ddd0 100644 --- a/polkadot/Cargo.lock +++ b/polkadot/Cargo.lock @@ -2750,13 +2750,14 @@ dependencies = [ [[package]] name = "honggfuzz" -version = "0.5.54" +version = "0.5.55" source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "bea09577d948a98a5f59b7c891e274c4fb35ad52f67782b3d0cb53b9c05301f1" +checksum = "848e9c511092e0daa0a35a63e8e6e475a3e8f870741448b9f6028d69b142f18e" dependencies = [ "arbitrary", "lazy_static", - "memmap", + "memmap2 0.5.0", + "rustc_version", ] [[package]] @@ -4185,16 +4186,6 @@ dependencies = [ "rustix", ] -[[package]] -name = "memmap" -version = "0.7.0" -source = "registry+https://github.com/rust-lang/crates.io-index" -checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b" -dependencies = [ - "libc", - "winapi", -] - [[package]] name = "memmap2" version = "0.2.3" diff --git a/polkadot/erasure-coding/fuzzer/Cargo.toml b/polkadot/erasure-coding/fuzzer/Cargo.toml index 06a85e63d2e5b1c8008da56c989e336e3d30ff76..b7e3702baa3a2fa213a45e53d85997271033c4a5 100644 --- a/polkadot/erasure-coding/fuzzer/Cargo.toml +++ b/polkadot/erasure-coding/fuzzer/Cargo.toml @@ -7,6 +7,7 @@ edition = "2021" [dependencies] polkadot-erasure-coding = { path = ".." } honggfuzz = "0.5" +polkadot-primitives = { path = "../../primitives" } primitives = { package = "polkadot-node-primitives", path = "../../node/primitives/" } [[bin]] diff --git a/polkadot/erasure-coding/fuzzer/src/round_trip.rs b/polkadot/erasure-coding/fuzzer/src/round_trip.rs index 3d5ea592745801524a84328052f6f57bcfa3f936..daa57a566fbbac25058260106535a6bd11fbe71f 100644 --- a/polkadot/erasure-coding/fuzzer/src/round_trip.rs +++ b/polkadot/erasure-coding/fuzzer/src/round_trip.rs @@ -2,6 +2,7 @@ use polkadot_erasure_coding::*; use primitives::{AvailableData, BlockData, PoV}; use std::sync::Arc; use honggfuzz::fuzz; +use polkadot_primitives::v2::PersistedValidationData; fn main() { diff --git a/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml b/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml index f1f883b7c62f0b58b4e157cbc36077452a78ddfe..42419be5da1872dfb2e9035c50a356c41b4d00fa 100644 --- a/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml +++ b/polkadot/xcm/xcm-simulator/fuzzer/Cargo.toml @@ -7,7 +7,7 @@ edition = "2021" [dependencies] codec = { package = "parity-scale-codec", version = "3.0.0" } -honggfuzz = "0.5.54" +honggfuzz = "0.5.55" scale-info = { version = "2.1.2", features = ["derive"] } frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" } diff --git a/polkadot/xcm/xcm-simulator/fuzzer/src/fuzz.rs b/polkadot/xcm/xcm-simulator/fuzzer/src/fuzz.rs index 691fba10cc10c9715a29376485669c0b63c25876..70ad3c1e2cc64bc95bc622c65377af69c6c78b31 100644 --- a/polkadot/xcm/xcm-simulator/fuzzer/src/fuzz.rs +++ b/polkadot/xcm/xcm-simulator/fuzzer/src/fuzz.rs @@ -122,7 +122,7 @@ fn main() { #[cfg(fuzzing)] { loop { - fuzz!(|data: &[u8]| { + honggfuzz::fuzz!(|data: &[u8]| { run_one_input(data); }); }