Skip to content

Fix parsing incomplete unicode escape "\uaaa"#733

Merged
byroot merged 1 commit intoruby:masterfrom
tompng:unicode_escape_fix
Jan 20, 2025
Merged

Fix parsing incomplete unicode escape "\uaaa"#733
byroot merged 1 commit intoruby:masterfrom
tompng:unicode_escape_fix

Conversation

@tompng
Copy link
Member

@tompng tompng commented Jan 20, 2025

Fix segmentation fault parsing "\uaaa"

1000.times { JSON.parse '"\\uaaa"' rescue nil }

Copy link
Member

@byroot byroot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❤️

@byroot byroot merged commit 5934182 into ruby:master Jan 20, 2025
33 checks passed
@tompng tompng deleted the unicode_escape_fix branch January 20, 2025 12:33
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