Menu

#586 smtube: Stack overflow in YTDelegate::layoutText in various scenarios with non-latin strings

stable
closed-fixed
nobody
smtube (7)
5
2016-01-15
2013-07-31
Mika Attila
No

Example:
If in YTDelegate::paint, both item->header and item->desc are set to QString::fromWCharArray(L"신화"), YTDelegate::layoutText will never reach the condition where it will stop calling itself, leading to stack overflow.

Possibly related Qt bug: https://bugreports.qt-project.org/browse/QTBUG-23855

A possible workaround could be to only recurse to a certain depth before bailing out.

Discussion

  • Mika Attila

    Mika Attila - 2013-07-31

    Example patch for a temporary workaround

     
  • Ricardo Villalba

    I've just added your patch in svn r5603.

     
  • Ricardo Villalba

    • status: open --> closed-fixed
     

Log in to post a comment.