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

Race condition on QGradientCache::getBuffer()

    XMLWordPrintable

Details

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

    Description

      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.

      Attachments

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes