Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8130679

Writer/StringWriter.write methods do not specify index out bounds

XMLWordPrintable

    • b120

      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.

            bpb Brian Burkhalter
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: