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) == '-'; |
The function parseInt has a missing size check. This leads to a
StringIndexOutOfBoundsExceptionwith the following reproducer:Java/Maths/ParseInteger.java
Lines 18 to 22 in a60cb58