Commons Compress
  1. Commons Compress
  2. COMPRESS-1

ArArchiveInputStream doesn't make use of internal offset

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major 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

      1. patch-ar-offset.txt
        1 kB
        Christian Grobmeier

        Activity

        Hide
        Christian Grobmeier added a comment -

        This patch should fix the offset trouble

        Show
        Christian Grobmeier added a comment - This patch should fix the offset trouble

          People

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

                Development