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

ArArchiveInputStream doesn't make use of internal offset

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      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
          Christian Grobmeier

          Activity

            People

            • Assignee:
              tcurdt Torsten Curdt
              Reporter:
              cgrobmeier 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