[Konsole-devel] [Bug 303390] Konsole crashes when selecting invalid unicode character.
Kurt V. Hindenburg
kurt.hindenburg at gmail.com
Sat Jul 14 22:25:24 UTC 2012
https://bugs.kde.org/show_bug.cgi?id=303390
--- Comment #5 from Kurt V. Hindenburg <kurt.hindenburg at gmail.com> ---
Git commit f04bd15bbe15bee12c33c12aa252d3c4df8b9984 by Kurt Hindenburg.
Committed on 12/07/2012 at 15:25.
Pushed by hindenburg into branch 'KDE/4.8'.
prevent crashing when selecting invalid unicode character.
Konsole goes into an infinite loop and will eventually crash due to
memory. On an invalid unicode char the width is 0 so the for loop never
exits.
This should prevent the crashes; not sure if there is a better way.
(cherry picked from commit 5ae5bc5019ec67df0846b2b317c02535bce5870f)
M +7 -1 src/TerminalCharacterDecoder.cpp
http://commits.kde.org/konsole/f04bd15bbe15bee12c33c12aa252d3c4df8b9984
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the konsole-devel
mailing list