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

JarFile$JarEntryIterator.nextElement throws unexpected IAE

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not an Issue
    • P4
    • None
    • None
    • core-libs

    Description

      Loading a fuzzed signed JAR file throws an unexpected exception:

      java Test
      Exception in thread "main" java.lang.IllegalArgumentException: MALFORMED
              at java.util.zip.ZipCoder.toString(ZipCoder.java:58)
              at java.util.zip.ZipFile.getZipEntry(ZipFile.java:584)
              at java.util.zip.ZipFile.access$900(ZipFile.java:60)
              at java.util.zip.ZipFile$ZipEntryIterator.next(ZipFile.java:540)
              at
      java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:515)
              at
      java.util.zip.ZipFile$ZipEntryIterator.nextElement(ZipFile.java:496)
              at java.util.jar.JarFile$JarEntryIterator.next(JarFile.java:275)
              at
      java.util.jar.JarFile$JarEntryIterator.nextElement(JarFile.java:284)
              at
      java.util.jar.JarFile$JarEntryIterator.nextElement(JarFile.java:265)
              at Test.reproduceIssue(Test.java:37)
              at Test.main(Test.java:58)

      Attachments

        Activity

          People

            lancea Lance Andersen
            jeff Jeff Dinkins
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: