Skip to content

Fix parsing of large integer doubles#504

Merged
lihaoyi merged 2 commits intomainfrom
large-int-double
Jul 9, 2023
Merged

Fix parsing of large integer doubles#504
lihaoyi merged 2 commits intomainfrom
large-int-double

Conversation

@lihaoyi
Copy link
Copy Markdown
Member

@lihaoyi lihaoyi commented Jul 9, 2023

Fixes #240

The basic problem appears to be that we are using a parseLong fast-path inside ujson.Value.visitFloat64StringParts. This is only valid for numbers of a certain digit-length. We should be checking for numbers larger than that length, and falling back to the toDouble slow path for those

@lihaoyi lihaoyi merged commit 1e75232 into main Jul 9, 2023
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.

NumberFormatException when deserializing a 128-bit integer

1 participant