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

QUrl implicit sharing is not thread-safe

    XMLWordPrintable

Details

    Description

      There are several const methods in QUrl which mutate the QUrlPrivate structure via calls QUrlPrivate::parse() without detaching first. For example, QUrl::toString(). This means that there may be data races when these methods are called from separate threads on two different QUrl objects where:

      1. Both QUrl objects share the same QUrlPrivate structure implicitly and
      2. QUrlPrivate::parse() has not yet been called.

      Attachments

        Issue Links

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

          Activity

            People

              thiago Thiago Macieira
              robertknight Robert Knight
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes