readFully(b,off,len) should throw IIOBE if off is negative, len is negative, or len is greater than b.length - off. In particular it does not if if off is negative and len is 0. This issue was raised in https://mail.openjdk.java.net/pipermail/core-libs-dev/2020-May/066453.html.
- csr for
-
JDK-8279638 DataInputStream.readFully(byte[], int, int) does not throw expected IndexOutOfBoundsExceptions
- Closed
- relates to
-
JDK-8279323 NullPointerException in DataInputStream#readFully(byte[] b, int off, int len)
- Closed
- links to