Skip to content
This repository has been archived by the owner on Nov 15, 2023. It is now read-only.

Commit

Permalink
Fix fuzzing builds xcm-fuzz and erasure-coding fuzzer (#6153)
Browse files Browse the repository at this point in the history
* fix fuzzing builds

* change Cargo.lock

* change honggfuzz

Co-authored-by: commented-line <venkatamaturi98@gmail.com>
  • Loading branch information
code-terror and commented-line authored Oct 16, 2022
1 parent efcaa57 commit 828fa9e
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 15 deletions.
17 changes: 4 additions & 13 deletions Cargo.lock

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

1 change: 1 addition & 0 deletions erasure-coding/fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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]]
Expand Down
1 change: 1 addition & 0 deletions erasure-coding/fuzzer/src/round_trip.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down
2 changes: 1 addition & 1 deletion xcm/xcm-simulator/fuzzer/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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" }
Expand Down
2 changes: 1 addition & 1 deletion xcm/xcm-simulator/fuzzer/src/fuzz.rs
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ fn main() {
#[cfg(fuzzing)]
{
loop {
fuzz!(|data: &[u8]| {
honggfuzz::fuzz!(|data: &[u8]| {
run_one_input(data);
});
}
Expand Down

0 comments on commit 828fa9e

Please sign in to comment.