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

QTextLine::cursorToX crashes if cpos exceeds linewidth

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: P2: Important P2: Important
    • 5.4.0
    • 5.3.1, 5.4.0
    • GUI: Text handling
    • None
    • All Platforms, now checked with Linux

      cursorToX crashes if cursorPos exceeds line width.

      Internally "itm = eng->findItem(pos);" can delivers -1 (not found), but itm is directly used as index for a QVector.

        1. crash_cursorToX.pro
          0.3 kB
          Jan Sundermeyer
        2. main.cpp
          0.2 kB
          Jan Sundermeyer
        3. testwidget.cpp
          0.1 kB
          Jan Sundermeyer
        4. testwidget.h
          0.9 kB
          Jan Sundermeyer
        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            krf Kevin Funk
            jsundermeyer Jan Sundermeyer
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes