[konsole] [Bug 402452] Crash in Konsole::TerminalDisplay::extendSelection after 4e09f089f940335bdd628139e870ba99721fddfa

Kurt Hindenburg bugzilla_noreply at kde.org
Sat Dec 29 14:04:44 GMT 2018


https://bugs.kde.org/show_bug.cgi?id=402452

Kurt Hindenburg <kurt.hindenburg at gmail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|CONFIRMED                   |RESOLVED
         Resolution|---                         |FIXED
      Latest Commit|                            |https://commits.kde.org/kon
                   |                            |sole/b85bbaa8c8807ab3619cdd
                   |                            |c35b634c2bb43e09fb

--- Comment #4 from Kurt Hindenburg <kurt.hindenburg at gmail.com> ---
Git commit b85bbaa8c8807ab3619cddc35b634c2bb43e09fb by Kurt Hindenburg, on
behalf of Pavel Khlebovich.
Committed on 29/12/2018 at 14:04.
Pushed by hindenburg into branch 'master'.

Fix crash in extendSelection

Summary:
Fix crash when doing word selection or line selection
and moving the cursor to the end of the screen.
After 4e09f089f940335bdd628139e870ba99721fddfa
Konsole tries to read out of bounds when you double
click to select a whole empty line, and hold down the
mouse button and drag to the right.

Note: still crashes with on some extendSelections
such when y=-1

Test Plan:
Doesn't crash anymore, selecting the last column works,
both in normal selection, line selection and word selection.

Reviewers: #konsole, hindenburg

Reviewed By: #konsole, hindenburg

Differential Revision: https://phabricator.kde.org/D17757

M  +7    -1    src/TerminalDisplay.cpp

https://commits.kde.org/konsole/b85bbaa8c8807ab3619cddc35b634c2bb43e09fb

-- 
You are receiving this mail because:
You are the assignee for the bug.


More information about the konsole-devel mailing list