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

Nullptr dereference in qcoretextfontdatabase.mm

    XMLWordPrintable

Details

    • macOS
    • 9526a7693 (dev), 43e33e833 (6.5), 9fce1ff20 (tqtc/lts-6.2), 7eb7da8e5 (6.6)

    Description

      Our crash reporter has shown multiple crashes in qcoretextfontdatabase.mm, which happens on QApplication init.

      The troublemaker is in line 905:

      QCoreTextFontDatabase::populateThemeFonts() {
          ...
          auto addFontVariants = [&](CTFontDescriptorRef descriptor) {
              QCFType<CFArrayRef> matchingDescriptors = CTFontDescriptorCreateMatchingFontDescriptors(descriptor, nullptr);
              const int matchingDescriptorsCount = CFArrayGetCount(matchingDescriptors); <--- matchingDescriptors can be nil
          ...
      }
      

      Attachments

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

        Activity

          People

            vestbo Tor Arne Vestbø
            vjungbluth Victor Jungbluth
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews