ppkarwasz commented on code in PR #790:
URL: https://github.com/apache/commons-io/pull/790#discussion_r2395893005
##########
src/main/java/org/apache/commons/io/input/CharSequenceReader.java:
##########
@@ -209,14 +210,13 @@ public int read() {
*/
@Override
public int read(final char[] array, final int offset, final int length) {
+ IOUtils.checkFromIndexSize(array, offset, length);
Review Comment:
Fixed in
https://github.com/apache/commons-io/pull/790/commits/8d520f72c3698440e2275b860a991a41757ad2fb
##########
src/main/java/org/apache/commons/io/input/NullReader.java:
##########
@@ -276,6 +278,10 @@ public int read(final char[] chars) throws IOException {
*/
@Override
public int read(final char[] chars, final int offset, final int length)
throws IOException {
+ IOUtils.checkFromIndexSize(chars, offset, length);
Review Comment:
Fixed in
https://github.com/apache/commons-io/pull/790/commits/8d520f72c3698440e2275b860a991a41757ad2fb
##########
src/main/java/org/apache/commons/io/output/ChunkedWriter.java:
##########
@@ -74,6 +74,7 @@ public ChunkedWriter(final Writer writer, final int
chunkSize) {
*/
@Override
public void write(final char[] 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
--
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]