Closed
Description
The parser fails to throw the ParseException when the parser expects the input to be of the float number type AND the input not being a valid number. This can lead to uncaught exceptions by unexpected input, which may lead to Denial-of-Service (DoS).
Parser Input of "-." or "2e+" or "[45e-" will crash with a NumberFormatException.
== Java Exception: java.lang.NumberFormatException: For input string: "-."
at java.base/jdk.internal.math.FloatingDecimal.readJavaFormatString(FloatingDecimal.java:2054)
at java.base/jdk.internal.math.FloatingDecimal.parseDouble(FloatingDecimal.java:110)
at java.base/java.lang.Double.parseDouble(Double.java:549)
at net.minidev.json.parser.JSONParserBase.extractFloat(JSONParserBase.java:141)