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

BufferedInputStream uses undefined value range for markpos

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: