ImageIO does not reset stream if an exception is thrown

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: 8u60
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: