Uploaded image for project: 'Derby'
  1. Derby
  2. DERBY-2742

LoopingAlphabetStream.read() returns invalid values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 10.3.1.4
    • 10.3.1.4
    • Test
    • None

    Description

      LoopingAlphabetStream.read() does not and bytes with 0xff before returning them. This causes the method to return negative integer values for negative byte values, which breaks the contract of InputStream.read(). The value returned must be in the range 0 - 255.

      Attachments

        1. derby-2742-1a.diff
          0.6 kB
          Kristian Waagan

        Activity

          People

            kristwaa Kristian Waagan
            kristwaa Kristian Waagan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: