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

QTextEngine crashes for some characters

XMLWordPrintable

    • a15b56b0c1eae0d368c16be2d81bba11cb1faee7

      QTextEngine crashes for some characters (ones not common in fonts) in case when fallback font families list consist of more than 255 entries.

      Could be reproduced with the following code:
      for(int b1 = 10;b1 < 300;b1++)

      { QString myStr; myStr.append(QChar(ushort(b1))); ui->comboBox->addItem(myStr); }

      This causes SIGSEGV in QtextEngine::shapeTextWithHarfbuzz() at line
      "si.ascent = qMax(actualFontEngine->ascent(), si.ascent);"
      due to actualFontEngine==0.

        1. all.tar.gz
          1.24 MB
        2. gdb
          48 kB
        3. gdb.log
          4 kB
        For Gerrit Dashboard: QTBUG-30412
        # Subject Branch Project Status CR V

            ritt.ks Konstantin Ritt
            alexondi Alexandr
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes