TrueZIP
  1. TrueZIP
  2. TRUEZIP-138

de.schlichtherle.truezip.zip.RawZipOutputStream can't handle entries of 4GB size or larger

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: TrueZIP 7.2, TrueZIP 7.3 RC 1, TrueZIP 7.3, TrueZIP 7.3.1, TrueZIP 7.3.2, TrueZIP 7.3.3, TrueZIP 7.3.4, TrueZIP 7.4, TrueZIP 7.4.1, TrueZIP 7.4.2
    • Fix Version/s: TrueZIP 7.2.1, TrueZIP 7.4.3
    • Component/s: TrueZIP Driver ZIP
    • Labels:
      None
    • Environment:

      Java(TM) SE Runtime Environment (build 1.7.0_01-b08) on Windows

      Description

      This is a regression from TrueZIP 6. It has been introduced by refactoring the RawZipOutputStream.ZipDeflater class to benefit from the java.util.zip.Deflater API enhancements in JSE 5.

      Unfortunately, java.util.zip.Deflater.getBytes(Read|Written) return long values, although their implementation in Sun's JDK 6 wraps at 4GB, which is why wrong data is written to the Central Directory entry.

      This has been fixed by Oracle in JDK 7.

        Issue Links

          Activity

          Hide
          Christian Schlichtherle added a comment -

          Fixed.

          Show
          Christian Schlichtherle added a comment - Fixed.
          Hide
          Christian Schlichtherle added a comment -

          For details of reopening see #TRUEZIP-139

          Show
          Christian Schlichtherle added a comment - For details of reopening see # TRUEZIP-139
          Hide
          Christian Schlichtherle added a comment -

          For information how to recover the entries of damaged archive files, please refer to #TRUEZIP-139

          Show
          Christian Schlichtherle added a comment - For information how to recover the entries of damaged archive files, please refer to # TRUEZIP-139

            People

            • Assignee:
              Christian Schlichtherle
              Reporter:
              Christian Schlichtherle
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: