nushell/crates/nu-path/fuzz
Dongjia "toka" Zhang bc7736bc99
Add 2 fuzzers for nu-path, nu-parser (#10376)
# Description

This PR adds a fuzzer for the nu-path and the nu-parser crate.
Now you can go to `crates/nu-path/fuzz`/`crates/nu-parser/fuzz` and run `cargo fuzz` to
find crashes.
https://github.com/nushell/nushell/issues/10365 and #9417 was found by
this


---------

Co-authored-by: sholderbach <sholderbach@users.noreply.github.com>
2023-09-16 22:32:53 +02:00
..
fuzz_targets Add 2 fuzzers for nu-path, nu-parser (#10376) 2023-09-16 22:32:53 +02:00
.gitignore Add 2 fuzzers for nu-path, nu-parser (#10376) 2023-09-16 22:32:53 +02:00
Cargo.toml Add 2 fuzzers for nu-path, nu-parser (#10376) 2023-09-16 22:32:53 +02:00
README.md Add 2 fuzzers for nu-path, nu-parser (#10376) 2023-09-16 22:32:53 +02:00
rust-toolchain.toml Add 2 fuzzers for nu-path, nu-parser (#10376) 2023-09-16 22:32:53 +02:00

Fuzzer for nu-path

Quick start guide

  • Install cargo-fuzz by cargo install cargo-fuzz
  • Make output directory mkdir out
  • Run the fuzzer with cargo fuzz run parse out