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

ZipFile::entries and ZipFile::getInputStream not consistent with each other when there are duplicate entries

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • tbd
    • 8
    • core-libs
    • None

      When ZipEntry::entries is called, the returned ZipEntry contains metadata such as the name, uncompressed size, etc read from its CEN record. However, the position (which record in the CEN) is not included. Next, when we call getInputStream on this ZipEntry, only the name is used to locate the CEN record and the result could be another one (with the same name). The most observable change is that the uncompressed size does not match the bytes available.

            jpai Jaikiran Pai
            weijun Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: