Skip to content

Commit 48ca33a

Browse files
Kubuxuraulk
authored andcommitted
Fix AMT fuzzing
We need to setup CI for the future. Signed-off-by: Jakub Sztandera <[email protected]>
1 parent a0c746a commit 48ca33a

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

ipld/amt/fuzz/Cargo.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ ahash = "0.6"
1616
[dependencies.fvm_ipld_amt]
1717
path = ".."
1818

19+
[dependencies.fvm_shared]
20+
path = "../../../shared"
21+
1922
# Prevent this from interfering with workspaces
2023
[workspace]
2124
members = ["."]

ipld/amt/fuzz/fuzz_targets/amt_fuzz.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,16 @@ use arbitrary::Arbitrary;
66
use fvm_ipld_amt::{Amt, MAX_INDEX};
77
use libfuzzer_sys::fuzz_target;
88

9+
910
#[derive(Debug, Arbitrary)]
1011
struct Operation {
11-
idx: usize,
12+
idx: u64,
1213
method: Method,
1314
}
1415

1516
#[derive(Debug, Arbitrary)]
1617
enum Method {
17-
Insert(usize),
18+
Insert(u64),
1819
Remove,
1920
Get,
2021
}

0 commit comments

Comments
 (0)