Skip to content

Commit

Permalink
Add fuzzing for payload and fix all the issues found. (#113)
Browse files Browse the repository at this point in the history
This PR adds fuzzing via cargo fuzz to the payload module and adds fixes for
the issues that the fuzzer uncovered.
  • Loading branch information
partim authored May 10, 2024
1 parent 73602cb commit 205089d
Show file tree
Hide file tree
Showing 9 changed files with 1,942 additions and 8 deletions.
23 changes: 23 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 Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ license = "BSD-3-Clause"
readme = "README.md"

[dependencies]
arbitrary = { version = "1", optional = true, features = ["derive"] }
arc-swap = "1.0"
bytes = "1"
chrono = "0.4.31"
Expand Down Expand Up @@ -38,6 +39,7 @@ webpki-roots = "0.25.2"

[features]
default = [ "socks" ]
arbitrary = [ "dep:arbitrary", "chrono/arbitrary", "rpki/arbitrary" ]
socks = [ "reqwest/socks" ]


Expand Down
4 changes: 4 additions & 0 deletions 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 205089d

Please sign in to comment.