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

WaylandEglClientBuffer: last texture not deleted

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.11
    • Wayland Compositor
    • None

    Description

      Since deleteOrphanedTextures() is called from WaylandEglClientBuffer::toOpenGLTexture(), there will always be at least one texture remaining after all buffers have been deleted. If the context of that texture is deleted, the old texture will contain an invalid QContext pointer.

      If then a new buffer is created in a new context, the next call to toOpenGLTexture() will cause the old texture to be deleted, resulting in an invalid memory read.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            tvete Paul Olav Tvete
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes