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

QTextEngine crashes for some characters

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P1: Critical
    • Resolution: Done
    • Affects Version/s: 4.8.0, 5.0.0
    • Fix Version/s: 5.2.0
    • Labels:
      None
    • Environment:
      OpenSuSE 12.3 x64
    • Commits:
      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
        2. gdb
          48 kB
        3. gdb.log
          4 kB

          Issue Links

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

            Activity

              People

              Assignee:
              ritt.ks Konstantin Ritt
              Reporter:
              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