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

PNGImageReader.readNullTerminatedString() doesnt check for non-null terminated strings with length equal to maxLen

XMLWordPrintable

    • b21
    • generic
    • generic

        In PNGImageReader.readNullTerminatedString() if we pass String whose length is same as maxLen but without null at the end. We will just read that non-null terminated string without throwing any Exception.

        We should throw a proper exception that header contains non-null terminated String.

        This bug is created after analyzing JDK-8191023.

              jdv Jayathirth D V
              jdv Jayathirth D V
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Created:
                Updated:
                Resolved: