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

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

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes