Skip to content

Conversation

tompng
Copy link
Member

@tompng tompng commented Jan 20, 2025

Reject these invalid numbers

JSON.parse '-' # => 0
JSON.parse '-.1' # => -0.1
JSON.parse '-e0' # => segmentation fault

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