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

ImageIO does not reset stream if an exception is thrown

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 8u60
    • client-libs
    • None
    • b100
    • generic
    • generic

      An ImageIO plugin, e.g. a png or bmp decoder, throws an IIOException when the image header is corrupted. Because this exception is not thrown within a try-finally block, the stream is never reset as it is on normal operation.

      See http://mail.openjdk.java.net/pipermail/2d-dev/2015-November/005878.html for more details.

            andrew Andrew Hughes
            andrew Andrew Hughes
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: