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

[TIFF] AIOOB Exception from TIFFLZWDecompressor

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • client-libs

      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)

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

            bpb Brian Burkhalter
            avstepan Alexander Stepanov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: