FileInputStream read(byte[] buf, int off, int len) with off+len, len
outside of specified bounds no exception is thrown.
With len outside of bounds No exception is thrown at all. Expect
ArrayIndexOutOfBoundsException to be thrown in this case.
With len+offset outside of bounds No exception is thrown at all. Expect
ArrayIndexOutOfBoundsException to be thrown in this case.
With offset outside of bounds ArrayIndexOutOfBoundsException thrown. OK
outside of specified bounds no exception is thrown.
With len outside of bounds No exception is thrown at all. Expect
ArrayIndexOutOfBoundsException to be thrown in this case.
With len+offset outside of bounds No exception is thrown at all. Expect
ArrayIndexOutOfBoundsException to be thrown in this case.
With offset outside of bounds ArrayIndexOutOfBoundsException thrown. OK
- duplicates
-
JDK-4008296 java.io.XXXXInputStream.read(b,off,len) methods work wrong with off, len
-
- Closed
-