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

Bug-231 introduces an off-by-one error

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P1: Critical
    • 4.7.4
    • 4.7.2
    • GUI: Text handling
    • None
    • Arch Linux on x86_64 computer using Qt and KDE packages compiled from latest trunk.
    • 22995948cd3f46780be5d8016708aeef0cd7b066

    Description

      The patch in Qt-bug 231 which replaced linear search with a binary search seems to have introduced an off-by-one error into the code in two places. This bug manifests itself as a crash in koffice when compiled against Qt from trunk if you hit the "tab" key on a new line in the text shape.

      I have added a comment to that bug report and attached a patch which I will also attach here.

      I have also created a bug report on bugs.kde.org (bug #265369) and linked it to this bug report.

      Attachments

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

        Activity

          People

            jiang Jiang Jiang
            atomopawn Robert Marmorstein
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes