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

Qt's user IDN whitelist code is not thread-safe

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Not Evaluated
    • Resolution: Invalid
    • Affects Version/s: 6.2.0 Beta1
    • Fix Version/s: None
    • Labels:
      None

      Description

      Qt allows user to specify custom IDN whitelist using QUrl::setIdnWhitelist(). The list is then stored in a global variable that is accessed without any locking.

      The documentation should either specify that this function should only be called before any other thread tries to use the list or the implementation should be made thread safe. I prefer the later because it is hard for a developer to see where the list may be used.

        Attachments

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

          Activity

            People

            Assignee:
            thiago Thiago Macieira
            Reporter:
            ievgenii.meshcheriakov Ievgenii Meshcheriakov
            PM Owner:
            Vladimir Minenko Vladimir Minenko
            RnD Owner:
            Alex Blasche Alex Blasche
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:

                Gerrit Reviews

                There are no open Gerrit changes