-
Notifications
You must be signed in to change notification settings - Fork 13.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix internal Wtf8Buf::extend_from_slice
check
#126977
Comments
@rustbot label T-libs C-cleanup O-windows |
@rustbot label -needs-triage |
bors
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 26, 2024
…=<try> set self.is_known_utf8 to false in extend_from_slice try-job: x86_64-msvc closes rust-lang#126977 Related to rust-lang#126885, rust-lang#126333, and [this conversation](<rust-lang@aa46a33#r143539097>)
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jun 26, 2024
… r=workingjubilee set self.is_known_utf8 to false in extend_from_slice try-job: x86_64-msvc closes rust-lang#126977 Related to rust-lang#126885, rust-lang#126333, and [this conversation](<rust-lang@aa46a33#r143539097>)
matthiaskrgr
added a commit
to matthiaskrgr/rust
that referenced
this issue
Jun 26, 2024
… r=workingjubilee set self.is_known_utf8 to false in extend_from_slice try-job: x86_64-msvc closes rust-lang#126977 Related to rust-lang#126885, rust-lang#126333, and [this conversation](<rust-lang@aa46a33#r143539097>)
rust-timer
added a commit
to rust-lang-ci/rust
that referenced
this issue
Jun 27, 2024
Rollup merge of rust-lang#126980 - Borgerr:fix-extendfromslice-check, r=workingjubilee set self.is_known_utf8 to false in extend_from_slice try-job: x86_64-msvc closes rust-lang#126977 Related to rust-lang#126885, rust-lang#126333, and [this conversation](<rust-lang@aa46a33#r143539097>)
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reviewing PR #126885 had some oversight regarding valid utf8 checks. This was graciously brought to our (meaning myself and @workingjubilee) attention by @yhx-12243 in this comment. Fix should really just be changing line 483 of wtf8.rs to setting
self.is_known_utf8
tofalse
, unless we decide there may be some merit to iterating again through theother
buffer.The text was updated successfully, but these errors were encountered: