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

the constructor for java.util.zip.ZipFile throws java.util.zip.ZipException

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      03
    • CPU:
      x86
    • OS:
      windows_nt

      Backports

        Description



        Name: pa48320 Date: 11/26/2001

        When reading an archive, the constructor for java.util.zip.ZipFile is called so that we can read the file.
        The constructor for ZipFile throws an exception when the zip entry contains a name field that is greater than 256 bytes.
        This prevents me from reading the file as this exception will always be thrown if the name field is greater than
        256 bytes.

        The Java API (via the java.util.zip.ZipEntry class) allows me to create a zip entry that contains a name field
        up to 0xFFFFF bytes in length. Therefore the read should not limit this field to 256 bytes.
        This bug exists for 1.4.0-beta3, 1.3.1.01, and 1.3.0_01. This bug does not exist in the 1.2.2 version.

        This was found while examining BUG 4527586
        ======================================================================

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                kkladkosunw Konstantin Kladko (Inactive)
                Reporter:
                pallenba Peter Allenbach (Inactive)
                Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: