-
- Downloads
Fix bug when parsing NaN, Inf with fraction or exponent parts (fixes #2299)
This patch fixes the issue where parsing NaN or Inf values with fractional or exponent parts would return incorrect results (e.g., "NaN.2e2" would be parsed as 20). Before this patch, the parser would continue to process the fractional and exponent parts even after successfully parsing a valid NaN or Inf, which could lead to parsing errors. This patch adds a check for such cases to skips the parsing of the fractional and exponent parts after completing the NaN and Inf parsing.
Loading
Please register or sign in to comment