Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-2138288

mustang b25 cannot extract data from zip files created by third-party zip implementations

XMLWordPrintable

    • b25
    • 6

      java.util.zip.ZipFile reading code assumes that the extra data in the LOC and the CEN must be equal, but in fact there is no such requirement. The Zip file spec explicitly allows the LOC extra data size to be different from the CEN extra data size, although the JDK never creates such zip files. Since we cannot trust the CEN extra data size, we need to read the LOC to determine the entry data offset.

            coffeys Sean Coffey
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: