[Hippo-cms7-dev] [JIRA] Created: (CMS7-5475) Possible infinite loop in ImageUtils#scaleImage

JIRA (Jasha Joachimsthal) helpdesk at onehippo.com
Tue Aug 30 15:33:45 CEST 2011


Possible infinite loop in ImageUtils#scaleImage
-----------------------------------------------

                 Key: CMS7-5475
                 URL: https://issues.onehippo.com/browse/CMS7-5475
             Project: Hippo CMS 7
          Issue Type: Bug
    Affects Versions: 2.20.01
            Reporter: Jasha Joachimsthal
         Attachments: InfiniteLoop.java

When ImageUtils#scaleImage is called to upscale an image (targetWidth or targetHeight is greater than original width or height) and the boolean highQuality is set to true, the method hangs in the do{} while(width != targetWidth || height != targetHeight) because of an infinite loop.
See attached junit test.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the Hippo-cms7-dev mailing list