Uploaded image for project: 'Commons Net'
  1. Commons Net
  2. NET-328

FromNetASCIIInputStream.read(byte[], int, int) may change length passed to superclass if not doing conversion

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 2.0
    • 2.2
    • None
    • None

    Description

      The method FromNetASCIIInputStream.read(byte[], int, int) may change the length passed to superclass if not doing conversion.

      It should probably check _noConversionRequired and call the super-class before recalculating the length.
      That is

      if (_noConversionRequired)
          return super.read(buffer, offset, __length);
      

      should be done at the very start of the method.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: