Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8294702

BufferedInputStream uses undefined value range for markpos

    XMLWordPrintable

Details

    • Bug
    • Resolution: Fixed
    • P4
    • 20
    • None
    • core-libs
    • None
    • b19

    Description

      The code of BufferedInputStream.transferTo contains several code locations where markpos is using an undefined value range by checking `markpos < 0`. The spec of BIS is very clear about markpos either being exactly -1, or being a value larger than that. To be spec compliant, the code should be changed from < 0 to == -1 everywhere.

      Attachments

        Issue Links

          Activity

            People

              mkarg Markus Karg
              mkarg Markus Karg
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: