-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Add fuzzers for BTreeMap and MinHeap (#217)
- Added two fuzzers `stable_btreemap_multiple_ops_persistent` and `stable_minheap_multiple_ops_persistent` - Added a CI job to check if the fuzzers can be built. However, the fuzzers are not run on CI yet. To run a fuzzer locally, ```sh rustup toolchain install nightly cargo install cargo-fuzz cargo +nightly fuzz run stable_btreemap_multiple_ops_persistent ```
- Loading branch information
1 parent
f2cde61
commit a62501e
Showing
8 changed files
with
741 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
target | ||
corpus | ||
artifacts | ||
coverage |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
[package] | ||
name = "ic-stable-structures-fuzz" | ||
version = "0.0.0" | ||
publish = false | ||
edition = "2021" | ||
|
||
[package.metadata] | ||
cargo-fuzz = true | ||
|
||
[dependencies] | ||
libfuzzer-sys = "0.4" | ||
arbitrary = {version = "1.3.0", features = ["derive"]} | ||
serde = {version = "1.0", features = ["derive"]} | ||
serde_bytes = "0.11" | ||
serde_cbor = "0.11.2" | ||
tempfile = "3.3.0" | ||
|
||
[dependencies.ic-stable-structures] | ||
path = ".." | ||
|
||
# Prevent this from interfering with workspaces | ||
[workspace] | ||
members = ["."] | ||
|
||
[[bin]] | ||
name = "stable_btreemap_multiple_ops_persistent" | ||
path = "fuzz_targets/stable_btreemap_multiple_ops_persistent.rs" | ||
test = false | ||
doc = false | ||
bench = false | ||
|
||
[[bin]] | ||
name = "stable_minheap_multiple_ops_persistent" | ||
path = "fuzz_targets/stable_minheap_multiple_ops_persistent.rs" | ||
test = false | ||
doc = false | ||
bench = false |
Oops, something went wrong.