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

QPixmap segfaults in Mac when loading a bigger image than it currently holds

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 4.6.1
    • 4.6.0
    • Image formats
    • None
    • macOS
    • cfa2c8edab18e810749ad7df29c0b3b4f83f7140

    Description

      The bug can be reproduced by creating a QPixmap object, loading a small image, and then loading a bigger image. It seems to exercise a memcpy() overrun in the old buffer, since it tries to copy the old buffer into the new buffer but using the new buffer's size.

      Tentative patch attached.

      Attachments

        1. teste.tar.gz
          905 kB
        2. qpixmap_mac.diff
          0.8 kB
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            kjernase Trond Kjernåsen (Inactive)
            epx Elvis Pfützenreuter
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes