leskin-in commented on a change in pull request #175:
URL: https://github.com/apache/commons-io/pull/175#discussion_r632054513



##########
File path: src/test/java/org/apache/commons/io/IOUtilsTestCase.java
##########
@@ -1331,6 +1332,15 @@ public void testCopyLarge_SkipWithInvalidOffset() throws 
IOException {
         }
     }
 
+    @Test public void testToByteArray_InputStreamTooLong() throws Exception {
+        try (CircularInputStream cin = new CircularInputStream(new byte[]{65, 
65, 65}, ((long)Integer.MAX_VALUE) + 1L)) {
+            IOUtils.toByteArray(cin);
+            fail("IllegalArgumentException expected");
+        } catch (final IllegalArgumentException exc) {

Review comment:
       Thanks. Fixed in 
https://github.com/apache/commons-io/pull/175/commits/cc28d3daccafad190c3002f0a74baabd4c234edc.




-- 
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.

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


Reply via email to