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

QTextEngine crashes for some characters

    XMLWordPrintable

Details

    • a15b56b0c1eae0d368c16be2d81bba11cb1faee7

    Description

      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.

      Attachments

        1. all.tar.gz
          1.24 MB
          Alexandr
        2. gdb
          48 kB
          Alexandr
        3. gdb.log
          4 kB
          Alexandr

        Issue Links

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

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved:

                Gerrit Reviews

                  There are no open Gerrit changes