D6473: Crash when replacing new lines with spaces

Anthony Fieroni noreply at phabricator.kde.org
Tue Aug 14 15:04:58 BST 2018


anthonyfieroni added a comment.


  About me when line(...) is accessed it should check for nullptr as well
  
    if (auto l = line(a)) {
        return l->accessor();
    }
  
  https://phabricator.kde.org/source/ktexteditor/browse/master/src/render/katelayoutcache.cpp;ad51cece443bc6bb643fa4ca94293a13d3c2f852$322 because m_renderer->doc()->lines() is bigger than lines

REPOSITORY
  R39 KTextEditor

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

To: jsalatas, #ktexteditor, dhaumann
Cc: kde-frameworks-devel, mwolff, anthonyfieroni, dhaumann, kfunk, ltoscano, kwrite-devel, michaelh, kevinapavew, ngraham, bruns, demsking, cullmann, sars
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kwrite-devel/attachments/20180814/b8bcf266/attachment.html>


More information about the KWrite-Devel mailing list