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

Failed to parse Non-zip64 signed apk with data descriptor

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 1.21
    • None
    • Archivers
    • None

    Description

      I can't upload my apk due to security policy of my company, but I do find where the problem lies.

      In org.apache.commons.compress.archivers.zip.ZipArchiveInputStream#readDataDescriptor we check whether following bytes are signaures to determine whethere size is 8 bytes or 4 bytes. Because what following is apk signing block so it will always thought "size" takes 8 bytes.

      So (4 + 4 = 8) extra bytes were read. Which leading to org.apache.commons.compress.archivers.zip.ZipArchiveInputStream#isApkSigningBlock also return false.

      Attachments

        Activity

          People

            Unassigned Unassigned
            nicktheuncharted nick allen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: