mirror of
https://github.com/pezkuwichain/pezkuwi-subxt.git
synced 2026-06-19 01:51:02 +00:00
Fix fuzzing builds xcm-fuzz and erasure-coding fuzzer (#6153)
* fix fuzzing builds * change Cargo.lock * change honggfuzz Co-authored-by: commented-line <venkatamaturi98@gmail.com>
This commit is contained in:
Generated
+4
-13
@@ -2750,13 +2750,14 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "honggfuzz"
|
name = "honggfuzz"
|
||||||
version = "0.5.54"
|
version = "0.5.55"
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
source = "registry+https://github.com/rust-lang/crates.io-index"
|
||||||
checksum = "bea09577d948a98a5f59b7c891e274c4fb35ad52f67782b3d0cb53b9c05301f1"
|
checksum = "848e9c511092e0daa0a35a63e8e6e475a3e8f870741448b9f6028d69b142f18e"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"arbitrary",
|
"arbitrary",
|
||||||
"lazy_static",
|
"lazy_static",
|
||||||
"memmap",
|
"memmap2 0.5.0",
|
||||||
|
"rustc_version",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
@@ -4185,16 +4186,6 @@ dependencies = [
|
|||||||
"rustix",
|
"rustix",
|
||||||
]
|
]
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "memmap"
|
|
||||||
version = "0.7.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "6585fd95e7bb50d6cc31e20d4cf9afb4e2ba16c5846fc76793f11218da9c475b"
|
|
||||||
dependencies = [
|
|
||||||
"libc",
|
|
||||||
"winapi",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "memmap2"
|
name = "memmap2"
|
||||||
version = "0.2.3"
|
version = "0.2.3"
|
||||||
|
|||||||
@@ -7,6 +7,7 @@ edition = "2021"
|
|||||||
[dependencies]
|
[dependencies]
|
||||||
polkadot-erasure-coding = { path = ".." }
|
polkadot-erasure-coding = { path = ".." }
|
||||||
honggfuzz = "0.5"
|
honggfuzz = "0.5"
|
||||||
|
polkadot-primitives = { path = "../../primitives" }
|
||||||
primitives = { package = "polkadot-node-primitives", path = "../../node/primitives/" }
|
primitives = { package = "polkadot-node-primitives", path = "../../node/primitives/" }
|
||||||
|
|
||||||
[[bin]]
|
[[bin]]
|
||||||
|
|||||||
@@ -2,6 +2,7 @@ use polkadot_erasure_coding::*;
|
|||||||
use primitives::{AvailableData, BlockData, PoV};
|
use primitives::{AvailableData, BlockData, PoV};
|
||||||
use std::sync::Arc;
|
use std::sync::Arc;
|
||||||
use honggfuzz::fuzz;
|
use honggfuzz::fuzz;
|
||||||
|
use polkadot_primitives::v2::PersistedValidationData;
|
||||||
|
|
||||||
|
|
||||||
fn main() {
|
fn main() {
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ edition = "2021"
|
|||||||
|
|
||||||
[dependencies]
|
[dependencies]
|
||||||
codec = { package = "parity-scale-codec", version = "3.0.0" }
|
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"] }
|
scale-info = { version = "2.1.2", features = ["derive"] }
|
||||||
|
|
||||||
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
frame-system = { git = "https://github.com/paritytech/substrate", branch = "master" }
|
||||||
|
|||||||
@@ -122,7 +122,7 @@ fn main() {
|
|||||||
#[cfg(fuzzing)]
|
#[cfg(fuzzing)]
|
||||||
{
|
{
|
||||||
loop {
|
loop {
|
||||||
fuzz!(|data: &[u8]| {
|
honggfuzz::fuzz!(|data: &[u8]| {
|
||||||
run_one_input(data);
|
run_one_input(data);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user