Commons IO
  1. Commons IO
  2. IO-307

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

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 2.1
    • Fix Version/s: 2.2
    • Component/s: None
    • Labels:
      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.

        Activity

        Sebb created issue -
        Sebb made changes -
        Field Original Value New Value
        Affects Version/s 2.1 [ 12316027 ]
        Sebb made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Fix Version/s 2.2 [ 12318448 ]
        Resolution Fixed [ 1 ]
        Hide
        Gary Gregory added a comment -

        Version 2.2 has been released and addresses this issue.

        Show
        Gary Gregory added a comment - Version 2.2 has been released and addresses this issue.
        Gary Gregory made changes -
        Status Resolved [ 5 ] Closed [ 6 ]
        Transition Time In Source Status Execution Times Last Executer Last Execution Date
        Open Open Resolved Resolved
        8h 29m 1 Sebb 14/Mar/12 02:09
        Resolved Resolved Closed Closed
        15d 19h 18m 1 Gary Gregory 29/Mar/12 22:28

          People

          • Assignee:
            Unassigned
            Reporter:
            Sebb
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development