Skip to content

Commit

Permalink
Introduce fuzzing for lading_payload::block::Cache::fixed
Browse files Browse the repository at this point in the history
This commit introduces a new fuzzing harness for the above mentioned
function. We want to ensure that we are not crashing at runtime or consuming
more memory than allowed.

REF SMPTNG-79

Signed-off-by: Brian L. Troutwine <[email protected]>
  • Loading branch information
blt committed Nov 10, 2023
1 parent aa9f22d commit 2814aec
Show file tree
Hide file tree
Showing 10 changed files with 1,711 additions and 0 deletions.
21 changes: 21 additions & 0 deletions Cargo.lock

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

2 changes: 2 additions & 0 deletions lading_payload/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ thiserror = { workspace = true }
time = { version = "0.3", features = ["formatting"] }
tracing = { workspace = true }
tokio = { workspace = true }
arbitrary = { version = "1", optional = true, features = ["derive"] }

[dev-dependencies]
proptest = "1.2"
Expand All @@ -31,6 +32,7 @@ criterion = { version = "0.5", features = ["html_reports"] }

[features]
default = []
fuzz = ["arbitrary"]

[lib]
doctest = false
Expand Down
4 changes: 4 additions & 0 deletions lading_payload/fuzz/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
target
corpus
artifacts
coverage
Loading

0 comments on commit 2814aec

Please sign in to comment.