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

PNGImageReader.read does not throw IAException when dest width/height < 1

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 6
    • 6
    • client-libs
    • None
    • 2d
    • mustang
    • generic
    • generic

      The specification for ImageReader.read states that an IllegalArgumentException will be thrown if the param provided is such that the resulting image would have a width or height less than 1.
             
      The PNG ImageReader does not throw an IllegalArgumentException in the above scenario, therefore not following the specification. A test case demonstrating this is attached. On running the test, use the scrollbar to view regions to the right, this should cause an Exception, but does not.

            bae Andrew Brygin
            duke J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: