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

Fix GH-17481: UTF-8 corruption in \Dom\HTMLDocument #17489

Closed
wants to merge 1 commit into from

Conversation

nielsdos
Copy link
Member

We need to properly handle the case when we return from having too few bytes, this needs to be handled separately because the while loop otherwise just performs a partial byte copy.

@nielsdos nielsdos linked an issue Jan 16, 2025 that may be closed by this pull request
@nielsdos
Copy link
Member Author

Note to self: the test should probably be moved into the encoding directory rather than parser directory.

@nielsdos
Copy link
Member Author

Apparently there's a test failure that I missed, will check...

@nielsdos
Copy link
Member Author

Test location and failure should now both be fixed.

We need to properly handle the case when we return from having too few
bytes, this needs to be handled separately because the while loop
otherwise just performs a partial byte copy.
@nielsdos nielsdos closed this in 2952e16 Jan 17, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

UTF-8 corruption in \Dom\HTMLDocument
2 participants