D6473: Crash when replacing new lines with spaces

Anthony Fieroni noreply at phabricator.kde.org
Wed Jul 12 06:52:36 UTC 2017


anthonyfieroni added a comment.


  https://phabricator.kde.org/source/ktexteditor/browse/master/src/render/katelayoutcache.cpp;ad51cece443bc6bb643fa4ca94293a13d3c2f852$321
  The problem is ```realLine >= m_renderer->doc()->lines()``` it return a nullptr. First of all https://phabricator.kde.org/source/ktexteditor/browse/master/src/render/katelayoutcache.cpp;ad51cece443bc6bb643fa4ca94293a13d3c2f852$368 should be checked against nullptr, even all other places that line(..) is used or better handling of corner case.

REPOSITORY
  R39 KTextEditor

REVISION DETAIL
  https://phabricator.kde.org/D6473

To: jsalatas, #ktexteditor
Cc: anthonyfieroni, dhaumann, kfunk, ltoscano, kwrite-devel, #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170712/4acd47c1/attachment-0001.html>


More information about the Kde-frameworks-devel mailing list