Uploaded image for project: 'Commons IO'
  1. Commons IO
  2. IO-853

BoundedInputStream.reset() not updating count

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.16.0
    • 2.16.1
    • Streams/Writers
    • None

    Description

      In https://github.com/apache/commons-io/commit/99702ec5ce4c25a909299c4f4a8be616d8ce04dc BoundedInputStream was modified to use a CountingInputStream, and reset() no longer set the count to the mark, because count was retrieved from the other stream.

      Then in https://github.com/apache/commons-io/commit/812d8a4b53d9758b4f081d9b98a70ea9ef131a0e the count field was added back in but reset() was not fixed to update the value of count when called.

      This causes a regression, found when attempting to upgrade commons-compress.

      Attachments

        Issue Links

          Activity

            People

              ggregory Gary D. Gregory
              mdrob Mike Drob
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: