[Development] Too long text in qlabel crashes my gdm

Alexander Nassian nassian at bitshift-dynamics.de
Thu Sep 29 22:12:14 CEST 2016


Hi,

Does this also happen if you use QString instead of char[]?

Beste Grüße / Best regards,
Alexander Nassian, bitshift dynamics GmbH

> Am 29.09.2016 um 22:08 schrieb Kotanski, Jan <jan.kotanski at desy.de>:
> 
> Hi,
> 
> I've noticed that too long test in qlabel e.g.
> 
>   void retranslateUi(QDialog *Dialog)
>    {
>        Dialog->setWindowTitle(QApplication::translate("Dialog", "Dialog", 0, QApplication::UnicodeUTF8));
>        char str[2000];
>        for(int i=0; i<1999;i++)
>          str[i] = 'a';
>        str[1999]='\0';
>        label->setText(QApplication::translate("Dialog", str, 0, QApplication::UnicodeUTF8));
>    } // retranslateUi
> 
> crashed my gdm (for gnome 3).
> 
> Is it a known problem? How to fix it?
> 
> More info on:
> 
> https://www.riverbankcomputing.com/pipermail/pyqt/2016-September/038145.html
> 
> Bests,
> Jan
> _______________________________________________
> Development mailing list
> Development at qt-project.org
> http://lists.qt-project.org/mailman/listinfo/development
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.qt-project.org/pipermail/development/attachments/20160929/9fec94e9/attachment.html>


More information about the Development mailing list