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

Race condition on QGradientCache::getBuffer()

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.6.3
    • 5.4.0 Beta
    • GUI: Painting
    • None

      getBuffer() hands out a reference to internal data without ref-counting it.

      There's a mutex, but it only protects access to the QHash. That's necessary, but not sufficient if the function hands out pointers to data stored in the hash.

      GCC ASAN report follows.

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

            allan.jensen Allan Sandfeld Jensen
            mmutz Marc Mutz
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes