You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
yhx-12243 opened this issue
Jun 12, 2024
· 1 comment
· Fixed by #126305
Labels
C-bugCategory: This is a bug.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessO-windowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.
yhx-12243
changed the title
as_mut_vec_for_path_buf in windows breaks UTF-8 is_known_utf8 assumptionas_mut_vec_for_path_buf in windows breaks UTF-8 is_known_utf8 assumption
Jun 12, 2024
workingjubilee
added
O-windows
Operating system: Windows
T-libs
Relevant to the library team, which will review and decide on the PR/issue.
I-unsound
Issue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/Soundness
and removed
needs-triage
This issue may need triage. Remove it if it has been sufficiently triaged.
labels
Jun 12, 2024
…ng-utf8-invariant, r=<try>
Make PathBuf less Ok with adding UTF-16 then `into_string`
Fixesrust-lang#126291 which is, as far as I can tell, a regression introduced by rust-lang#96869.
try-job: x86_64-msvc
Rollup merge of rust-lang#126305 - workingjubilee:fix-os-string-to-string-utf8-invariant, r=joboet
Make PathBuf less Ok with adding UTF-16 then `into_string`
Fixesrust-lang#126291 which is, as far as I can tell, a regression introduced by rust-lang#96869.
try-job: x86_64-msvc
C-bugCategory: This is a bug.I-unsoundIssue: A soundness hole (worst kind of bug), see: https://en.wikipedia.org/wiki/SoundnessO-windowsOperating system: WindowsT-libsRelevant to the library team, which will review and decide on the PR/issue.
rust/library/std/src/sys_common/wtf8.rs
Lines 136 to 146 in ebcb862
rust/library/std/src/sys_common/wtf8.rs
Lines 479 to 481 in ebcb862
I tried this code:
I expected to see this happen:
Instead, this happened:
(Obviously,
String
s can't contain\u{d800}
.)Meta
rustc --version --verbose
:The text was updated successfully, but these errors were encountered: