Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 507002

Summary: kde-base/kdelibs-4.11.5: KLineEdit with squeezed text enabled can cause endless loop
Product: Gentoo Linux Reporter: Israel G. Lugo <israel.lugo>
Component: [OLD] KDEAssignee: Gentoo KDE team <kde>
Status: RESOLVED DUPLICATE    
Severity: normal    
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
URL: https://bugs.kde.org/show_bug.cgi?id=328263
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: upstream patch to fix the problem

Description Israel G. Lugo 2014-04-07 03:26:53 UTC
Created attachment 374450 [details, diff]
upstream patch to fix the problem

Hello,

kde-base/kdelibs-4.11.5 (current stable) has a bug which causes an infinite loop on media-gfx/digikam-3.5.0 (current stable), for example when selecting the Caption/Tags view.

This has been fixed upstream, please see https://bugs.kde.org/show_bug.cgi?id=328263 (KDE Bug 328263: KLineEdit with squeezed text enabled can cause endless loop)

Quoting from the commit:

---8<--8<--8<---
Git commit ed9aa998c439a086ed82b925dc4bfcbf009cdcf2 by David Faure, on behalf of Axel Arnold.
Committed on 21/12/2013 at 00:34.
Pushed by dfaure into branch 'master'.

fix endless loop in KLineEdit->setSqueezedText()

If KLineEdit has squeezed text enabled, but the widget has still zero width, KLineEdit::setSqueezedText() can go into an endless loop trying to remove more than all letters from the string. This patch fixes both this underrun and the corresponding possible overrun if the squeezed text is too small. The underrun is responsible for endless loops in digikam, see the corresponding bug report.

--->8-->8-->8---

Please backport this fix, as it makes stable Digikam rather useless.

Thank you,
Israel G. Lugo
Comment 1 Johannes Huber (RETIRED) gentoo-dev 2014-04-07 09:18:20 UTC

*** This bug has been marked as a duplicate of bug 506524 ***
Comment 2 Israel G. Lugo 2014-04-07 11:00:31 UTC
Appologies for the duplicate; I searched but apparently not well enough (also because I had already seen the problem a few months ago).