Skip to content

Commit

Permalink
Fuzzing (XAMPPRocky#726)
Browse files Browse the repository at this point in the history
* Add fuzzing support

See fuzz/README.md for details. Example bug: XAMPPRocky#725

* improve fuzz docs

* fuzzing: make relevant config part of input

Most of the config is to do with what files to parse, however
one setting - treat_doc_strings_as_comments - does impact parse_from_slice

* fuzzing: improve docs + config clarity

* fuzz/README.md: install instructions + another todo item
  • Loading branch information
mykter authored and kornysietsma committed Nov 16, 2022
1 parent 81996e5 commit 4ad8b05
Show file tree
Hide file tree
Showing 10 changed files with 1,308 additions and 1 deletion.
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.

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ serde_json = "1.0.64"

[dependencies]
aho-corasick = "0.7.15"
arbitrary = { version = "1.0.0", features = ["derive"] }
clap = "2.33.3"
crossbeam-channel = "0.5.0"
encoding_rs_io = "0.1.7"
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
Loading

0 comments on commit 4ad8b05

Please sign in to comment.