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

DigestInputStream does not work correctly if skip() or mark() / reset() is used

    Details

    • Type: Bug
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 7
    • Fix Version/s: None
    • Component/s: security-libs
    • Labels:

      Description

      The java.security.DigestInputStream class does not override skip(), mark(), or reset() so it inherits the implementations from java.io.FilterInputStream, which delegates to the wrapped stream. That means the digest is not updated in any of these events. This either needs to be fixed or documented as a known limitation.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                xuelei Xue-Lei Fan
                Reporter:
                andreas Andreas Sterbenz
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: