rust/library/std
Stuart Cook 8e037ccec7
Rollup merge of #125060 - ChrisJefferson:pathbuf-doc, r=workingjubilee
Expand documentation of PathBuf, discussing lack of sanitization

Various methods in `PathBuf`, in particular `set_file_name` and `set_extension` accept strings which include path seperators (like `../../etc`). These methods just glue together strings, so you can end up with strange strings.

This isn't reasonable to change/fix at this point, and might not even be fixable, but I think should be documented. In particular, you probably shouldn't blindly build paths using strings given by possibly malicious users.
2024-09-12 20:37:14 +10:00
..
benches Reformat use declarations. 2024-07-29 08:26:52 +10:00
src Rollup merge of #125060 - ChrisJefferson:pathbuf-doc, r=workingjubilee 2024-09-12 20:37:14 +10:00
tests rustc_target: Add SME aarch64 features 2024-08-27 11:11:47 +01:00
build.rs Port std library to RTEMS 2024-09-03 09:19:29 +02:00
Cargo.toml Port std library to RTEMS 2024-09-03 09:19:29 +02:00