[Patch] fix for crash in KStringHandler

Leo Savernik l.savernik at aon.at
Wed Apr 20 15:52:33 BST 2005


Hello,

Since KDE 3.4.0, Kopete aborts with a SIGFPE on initial connect or even on 
startup.

Tracing it down, I found the culprit to be a division by zero. Don't ask me 
why QFontMetrics::maxWidth can return 0, but it sometimes does, leading to an 
imminent crash.

The patch below fixes the division by zero.
Ok for HEAD and branch?

mfg
	Leo
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kstringhandler_1.diff
Type: text/x-diff
Size: 670 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050420/a4e04e88/attachment.diff>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050420/a4e04e88/attachment.sig>


More information about the kde-core-devel mailing list