Commit ba2b7c6a authored by Robert Knight's avatar Robert Knight
Browse files

Check to prevent possible out-of-bounds array access.

svn path=/trunk/KDE/kdebase/apps/konsole/; revision=746132
parent 9863b550
......@@ -1118,7 +1118,7 @@ void TerminalDisplay::paintFilters(QPainter& painter)
// display in _columns
// ignore whitespace at the end of the lines
while ( QChar(_image[loc(endColumn,line)].character).isSpace() )
while ( QChar(_image[loc(endColumn,line)].character).isSpace() && endColumn > 0 )
endColumn--;
// increment here because the column which we want to set 'endColumn' to
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment