-
-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Denial of service parsing JsNumber as Instant/ZonedDateTime/LocalDateTime #180
Comments
this hangs |
Converting a huge BigDecimal to a long takes a lot of time, it's probably better to use |
It will be not fully compatible with the current implementation too
|
If we want to accept decimals to be backward compatible we can use setScale(0, RoundingMode.FLOOR).toLongExact |
@alexdupre that still hangs |
@OlegYch The fix for this isn't correct for Quoting from the JavaDoc:
|
Hmm that is probably a separate issue. I don't think it ever handled |
Play JSON Version (2.5.x / etc)
2.6.9
API (Scala / Java / Neither / Both)
Scala 2.12.6
Operating System (Ubuntu 15.10 / MacOS 10.10 / Windows 10)
MacOS 10.13.6
JDK (Oracle 1.8.0_72, OpenJDK 1.8.x, Azul Zing)
Paste the output from
java -version
at the command line.Library Dependencies
N/A
Expected Behavior
Run the following code:
It should return a result quickly.
Actual Behavior
It is CPU bound for an unknown period of time (I have never waited long enough for it to complete).
The text was updated successfully, but these errors were encountered: