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

Clean up ZipInputStream.read() with respect to STORED and DEFLATED cases

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Unresolved
    • Icon: P4 P4
    • None
    • 6
    • core-libs
    • None
    • Cause Known
    • generic
    • generic

      In ZipInputStream.read(), there is an asymmetry between the STORED
      and DEFLATED case. End of file while reading entry data should be
      done consistently.

      In the DEFLATED case, the crc is checked when entryEOF is set to
      true. The STORED case should probably do likewise.

      On the other hand, perhaps the code should do EOF processing
      whenever there are no bytes left to read, without waiting for
      an unproductive final read that returns -1.

      But whatever we do, STORED and DEFLATED should be consistent.

            Unassigned Unassigned
            bristor Dave Bristor (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Imported:
              Indexed: