Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-307

ReaderInputStream#read(byte[] b, int off, int len) should check for valid parameters

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1
    • 2.2
    • None
    • None

    Description

      If the buffer is null, the method should throw NPE immediately (rather than letting it occur later)

      If the offset or length are < 0 or would overflow the buffer, then throw IndexOutOfBoundsException with details of the values.

      Attachments

        Activity

          People

            Unassigned Unassigned
            sebb Sebb
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: