Skip to content

Fix a regression in parsing of unicode surogate pairs#913

Merged
byroot merged 1 commit intoruby:masterfrom
byroot:fix-unicode-escape
Dec 4, 2025
Merged

Fix a regression in parsing of unicode surogate pairs#913
byroot merged 1 commit intoruby:masterfrom
byroot:fix-unicode-escape

Conversation

@byroot
Copy link
Copy Markdown
Member

@byroot byroot commented Dec 4, 2025

Fix: #912

In the case of surogate pairs we consume two backslashes, so json_next_backslash need to ensure it's not sending us back in the stream.

Fix: ruby#912

In the case of surogate pairs we consume two backslashes, so
`json_next_backslash` need to ensure it's not sending us back in the
stream.
@byroot byroot merged commit 0fce370 into ruby:master Dec 4, 2025
37 checks passed
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.

Fix invalid byte sequence argument error

1 participant