Bug #72000 | java.lang.ArrayIndexOutOfBoundsException on java.sql.ResultSet.getInt(String) | ||
---|---|---|---|
Submitted: | 10 Mar 2014 20:55 | Modified: | 3 Apr 2014 22:15 |
Reporter: | Peter Palmreuther | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | Connector / J | Severity: | S2 (Serious) |
Version: | 5.1.29 | OS: | Any |
Assigned to: | Filipe Silva | CPU Architecture: | Any |
[10 Mar 2014 20:55]
Peter Palmreuther
[14 Mar 2014 10:25]
Filipe Silva
Hi Peter, Thank you for this bug report. Verified as described.
[3 Apr 2014 22:15]
Daniel So
Added an entry to the Connector/J 5.1.31 changelog: "When trying to get an integer from a column value that was not a number, instead of a NumberFormatException , an ArrayIndexOutOfBoundsException was thrown instead due to an off-by-one error. This fix corrects the stop condition for trimming spaces in the beginning of byte buffers in the getShort(), getInt(), and getLong() methods in the StringUtils class."