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

XMLWordPrintable

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

            Assignee:
            Andrew Brygin
            Reporter:
            J. Duke
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: