Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4192840

java.io.FileInputStream.read(byte[], int, int) len outside bounds no exception

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 1.1.6
    • core-libs
    • None
    • sparc
    • solaris_2.6

      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

            mr Mark Reinhold
            mcolburnsunw Michael Colburn (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: