mirror of
https://github.com/nushell/nushell.git
synced 2025-08-09 11:35:43 +02:00
Fix the nu-path
fuzz-target (#16188)
This code didn't compile, fixed provisionally by always running the codepath with tilde expansion. @IanManske worth discussing what we may want to fuzz here.
This commit is contained in:
committed by
GitHub
parent
b0687606f7
commit
93b407fa88
@ -5,4 +5,4 @@
|
||||
# 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`
|
||||
- Run the fuzzer with `cargo fuzz run path out`
|
||||
|
@ -17,6 +17,6 @@ fuzz_target!(|data: &[u8]| {
|
||||
// Here, we're assuming a second path for the "relative to" aspect.
|
||||
// For simplicity, we're just using the current directory.
|
||||
let current_dir = std::path::Path::new(".");
|
||||
let _ = expand_path_with(path, ¤t_dir);
|
||||
let _ = expand_path_with(path, ¤t_dir, true);
|
||||
}
|
||||
});
|
||||
|
Reference in New Issue
Block a user