Uploaded image for project: 'Commons Compress'
  1. Commons Compress
  2. COMPRESS-1

ArArchiveInputStream doesn't make use of internal offset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • None
    • None
    • None

    Description

      When entering the ArchiveInputStream, the header will be investigated. If offset = 0, then for <arch> will be searched with a read method from InputStream. The offset var will not be updated of course and stays 0. Next time an invalid header exception is thrown.

      Solution: all read operations must update the offset field in ArchiveInputStream

      Attachments

        1. patch-ar-offset.txt
          1 kB
          cgrobmeier

        Activity

          People

            tcurdt Torsten Curdt
            grobmeier Christian Grobmeier
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified