mirror of
https://github.com/nushell/nushell.git
synced 2025-07-13 04:46:17 +02:00
.cargo
.githooks
.github
assets
benches
crates
nu-cli
nu-cmd-base
nu-cmd-dataframe
nu-cmd-extra
nu-cmd-lang
nu-color-config
nu-command
nu-engine
nu-explore
nu-glob
nu-json
nu-lsp
nu-parser
fuzz
fuzz_targets
.gitignore
Cargo.toml
README.md
gather_seeds.nu
rust-toolchain.toml
src
tests
Cargo.toml
LICENSE
README.md
nu-path
nu-plugin
nu-pretty-hex
nu-protocol
nu-std
nu-system
nu-table
nu-term-grid
nu-test-support
nu-utils
nu_plugin_custom_values
nu_plugin_example
nu_plugin_formats
nu_plugin_gstat
nu_plugin_inc
nu_plugin_python
nu_plugin_query
README.md
docker
scripts
src
tests
wix
.gitattributes
.gitignore
CODE_OF_CONDUCT.md
CONTRIBUTING.md
Cargo.lock
Cargo.toml
Cross.toml
LICENSE
PLATFORM_SUPPORT.md
README.md
rust-toolchain.toml
toolkit.nu
# 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>
Fuzzer for nu-parser
- For detailed info, please look at cargo-fuzz
Quick start guide
- Install cargo-fuzz by
cargo install cargo-fuzz
- Run
gather_seeds.nu
for preparing the initial seeds corpus - Make output directory
mkdir out
- Run the fuzzer with
cargo fuzz run parse out seeds