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

Crash in QTextEngine::boundingRect() when using Thai language

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P1: Critical P1: Critical
    • 4.6.3
    • 4.6.2
    • GUI: Text handling
    • None
    • a70d247d81d2f49faab522af5e4c2a815682c78a

      glyph_metrics_t QTextEngine::boundingBox(int from, int len) const crashes when using Thai language Vista and Thai string are added to a combo-box.
      The crash occurs on the line:

      glyph_t glyph = glyphs.glyphs[logClusters[pos + ilen - 1]];

      due to logClusters[pos + ilen - 1] exceeding the array bounda of glyphs.

      The attached example code demonstrates this.

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

            esabraha Eskil Abrahamsen Blomfeldt
            xcm Martin Petersson (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes