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

[TIFF] AIOOB Exception from TIFFLZWDecompressor

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: client-libs
    • Labels:

      Description

      Please load the file attached and run the test code.

      The following exception will occur:
      Exception in thread "main" java.lang.ArrayIndexOutOfBoundsException: 2560
              at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decode(java.desktop@9-ea/TIFFLZWDecompressor.java:172)
              at com.sun.imageio.plugins.tiff.TIFFLZWDecompressor.decodeRaw(java.desktop@9-ea/TIFFLZWDecompressor.java:102)
              at com.sun.imageio.plugins.tiff.TIFFDecompressor.decode(java.desktop@9-ea/TIFFDecompressor.java:2494)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.decodeTile(java.desktop@9-ea/TIFFImageReader.java:1080)
              at com.sun.imageio.plugins.tiff.TIFFImageReader.read(java.desktop@9-ea/TIFFImageReader.java:1274)
              at javax.imageio.ImageReader.readAll(java.desktop@9-ea/ImageReader.java:1065)
              at LoadImage.load(LoadImage.java:40)
              at LoadImage.main(LoadImage.java:63)

      JDK9 b112, Windows 7

      The image could be loaded without issues with Windows Photo Viewer (or GNOME image viewer 3.10, Ubuntu 14.04 Linux)

        Attachments

        1. DeflateNOK.tiff
          5 kB
        2. lenaNOK.tiff
          660 kB
        3. LoadImage.java
          2 kB

          Activity

            People

            Assignee:
            bpb Brian Burkhalter
            Reporter:
            avstepan Alexander Stepanov
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: