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

QFontEngineFT::loadGlyph freeing invalid glyph data

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 5.5.0 Beta
    • 5.4.1
    • GUI: Font handling
    • None
    • Current Arch Linux with custom qt5-base debug build, no extra freetype fonts installed, called from qutebrowser/QtWebKit.
    • 7cd1c0e420933cfc10019d6a592b85311e5e5fe0

    Description

      loadGlyph crashes in line 1184 when trying to free glyph data which is inaccessible, possibly has already been freed?

      #1 0x00007fffe2018308 in QFontEngineFT::loadGlyph (this=this@entry=0x55555728e890, set=set@entry=0x55555728e9a8, glyph=glyph@entry=33, subPixelPosition=..., subPixelPosition@entry=..., format=<optimized out>, format@entry=QFontEngine::Format_Mono, fetchMetricsOnly=fetchMetricsOnly@entry=false) at ../gui/text/qfontengine_ft.cpp:1184
      1184 delete [] g->data;
      (gdb) p g->data
      $12 = (uchar *) 0x5555ffffffff <error: Cannot access memory at address 0x5555ffffffff>

      Full stacktrace attached.

      Attachments

        For Gerrit Dashboard: QTBUG-44812
        # Subject Branch Project Status CR V

        Activity

          People

            ritt.ks Konstantin Ritt
            flavi0 Patric Schmitz
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes