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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Invalid
    • Icon: Not Evaluated Not Evaluated
    • None
    • 6.2.0 Beta1
    • None

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes