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

qfontdatabase.cpp uses platformNativeInterface() unconditionally, leading to segfault

    XMLWordPrintable

Details

    • Bug
    • Resolution: Out of scope
    • P2: Important
    • None
    • 5.3.1
    • GUI: Font handling
    • None
    • Linux

    Description

      Line 536 of qfontdatabase.cpp is

      QGuiApplication::platformNativeInterface()->nativeResourceForScreen("hintstyle", QGuiApplication::primaryScreen());

      If a QPA plugin implements services() but does not implement nativeInterface() and the desktop name returned by serives is GNOME or UNITY Qt will crash.

      The return value of platformNativeInterface() should be checked before being used.

      Attachments

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

        Activity

          People

            esabraha Eskil Abrahamsen Blomfeldt
            kovid Kovid Goyal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes