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

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • None
    • Affects Version/s: 1.1.6
    • Component/s: 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

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: