Skip to content
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

Validate that names are valid UTF-8 #6682

Merged
merged 1 commit into from
Jun 19, 2024
Merged

Validate that names are valid UTF-8 #6682

merged 1 commit into from
Jun 19, 2024

Conversation

tlively
Copy link
Member

@tlively tlively commented Jun 19, 2024

Add an isUTF8 utility and use it in both the text and binary parsers. Add missing checks for overlong encodings and overlarge code points in our WTF8 reader, which the new utility uses. Re-enable the spec tests that test UTF-8 validation.

@tlively tlively requested a review from kripken June 19, 2024 00:27
@tlively tlively force-pushed the spec-test-leb128 branch from c4bd0b4 to 5c8bd00 Compare June 19, 2024 01:36
Base automatically changed from spec-test-leb128 to main June 19, 2024 02:12
Add an `isUTF8` utility and use it in both the text and binary parsers. Add
missing checks for overlong encodings and overlarge code points in our WTF8
reader, which the new utility uses. Re-enable the spec tests that test UTF-8
validation.
@tlively tlively enabled auto-merge (squash) June 19, 2024 02:28
@tlively tlively merged commit 765c614 into main Jun 19, 2024
12 of 13 checks passed
@tlively tlively deleted the spec-test-utf8 branch June 19, 2024 03:08
@gkdn gkdn mentioned this pull request Aug 31, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants