Uploaded image for project: 'Hippo CMS'
  1. Hippo CMS
  2. CMS-5475

Possible infinite loop in ImageUtils#scaleImage

    XMLWordPrintable

Details

    • Bug
    • Status: Closed
    • Normal
    • Resolution: Available for testing
    • 2.20.01
    • 2.21.03
    • None
    • None

    Description

      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.

      Attachments

        Activity

          People

            jsheriff Junaidh Kadhar Sheriff
            jasha joachimsthal Jasha Joachimsthal (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: