Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-127540

WebP: QImage detach in WebPPictureImportRGB(A) can cause a crash

    XMLWordPrintable

Details

    • 0dfb177b4 (dev), 1a787500b (6.8), 30512b70e (6.7), 034dc8983 (tqtc/lts-6.5)

    Description

      Saving WebP detaches the QImage when using WebP API. `.bits()` is called instead of `.constBits()` which leads to worse performance when QImage is already in required format.

      Moreover if we have custom (larger) bytes per line, after detaching the image will be copied to a smaller bytes per line (additional data padding removed), so it'll crash (the bytes per line is read and passed to WebP API before detaching).

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            vgt Eirik Aavitsland
            zaps166 Błażej Szczygieł
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: