Writer and its sub-classes (StringWriter in particular) needs to be audited to ensure that write and other methods that take an index specify the behavior for when the index is validated
Writer.write(char[] cbuf, int off, int len) and StringWriter.write(String str, int off, int len) are two examples where the methods can fail if the offset or length leads to an out of bounds condition.
Writer.write(char[] cbuf, int off, int len) and StringWriter.write(String str, int off, int len) are two examples where the methods can fail if the offset or length leads to an out of bounds condition.
- relates to
-
JDK-8156593 DataOutput.write(byte[],int,int) and its implementations do not specify index out bounds
-
- Resolved
-
-
JDK-8029804 (spec) BufferedWriter.write(String, int, int) IndexOutOfBoundsException
-
- Closed
-
-
JDK-8079796 (spec) Writer.write(char[], int, int) throws unspecified IndexOutOfBoundsException
-
- Closed
-
-
JDK-8079810 (spec) Fix java.io.Writer.write(java.lang.String, int, int) IndexOutOfBoundsException wording
-
- Closed
-