-
Bug
-
Resolution: Fixed
-
P4
-
9
-
b132
-
Verified
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8183713 | 8u161 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8163868 | 8u152 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8192449 | emb-8u161 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8163869 | 7u131 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
JDK-8163870 | 6u141 | Ivan Gerasimov | P4 | Resolved | Fixed | b01 |
len = count - pos;
}
Here len can be close to Integer.MAX_VALUE and pos > 0, which can result in negative (pos + len).
As a result, read() throws inappropriate StringIndexOutOfBoundsException.
- backported by
-
JDK-8163868 Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
- Resolved
-
JDK-8163869 Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
- Resolved
-
JDK-8163870 Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
- Resolved
-
JDK-8183713 Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
- Resolved
-
JDK-8192449 Integer overflow in StringBufferInputStream.read() and CharArrayReader.read/skip()
- Resolved
- relates to
-
JDK-8163877 Tests added in JDK-8163518 fail on some platforms
- Closed
-
JDK-8164228 Test java/io/StringBufferInputStream/OverflowInRead.java fail intermittently
- Closed