ppkarwasz commented on code in PR #790:
URL: https://github.com/apache/commons-io/pull/790#discussion_r2393869862


##########
src/main/java/org/apache/commons/io/output/ClosedWriter.java:
##########
@@ -77,6 +79,7 @@ public void flush() throws IOException {
      */
     @Override
     public void write(final char[] cbuf, final int off, final int len) throws 
IOException {
+        IOUtils.checkFromIndexSize(cbuf, off, len);

Review Comment:
   Fixed in 
https://github.com/apache/commons-io/pull/790/commits/06cb03b158c105427f79c1c39b7a50a5bb57ba8d
 with some additional tests.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to