ppkarwasz commented on code in PR #790:
URL: https://github.com/apache/commons-io/pull/790#discussion_r2395895187
##########
src/main/java/org/apache/commons/io/output/ChunkedOutputStream.java:
##########
@@ -172,6 +172,7 @@ int getChunkSize() {
*/
@Override
public void write(final byte[] data, final int srcOffset, final int
length) throws IOException {
+ IOUtils.checkFromIndexSize(data, srcOffset, length);
Review Comment:
Fixed in
https://github.com/apache/commons-io/pull/790/commits/8d520f72c3698440e2275b860a991a41757ad2fb
##########
src/main/java/org/apache/commons/io/output/WriterOutputStream.java:
##########
@@ -448,6 +448,7 @@ public void write(final byte[] b) throws IOException {
*/
@Override
public void write(final byte[] b, int off, int len) throws IOException {
+ IOUtils.checkFromIndexSize(b, off, len);
Review Comment:
Fixed in
https://github.com/apache/commons-io/pull/790/commits/8d520f72c3698440e2275b860a991a41757ad2fb
--
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]