The function parseInt has a missing size check. This leads to a StringIndexOutOfBoundsException with the following reproducer:
|
public static int parseInt(String s) { |
|
if (s == null) { |
|
throw new NumberFormatException("null"); |
|
} |
|
boolean isNegative = s.charAt(0) == '-'; |