From kde-bugs-dist Sat May 31 22:33:44 2014 From: =?UTF-8?Q?Thomas=20L=C3=BCbking=20?= Date: Sat, 31 May 2014 22:33:44 +0000 To: kde-bugs-dist Subject: [frameworks-kwindowsystem] [Bug 335161] get_stringlist_reply returns invalid data for single item li Message-Id: X-MARC-Message: https://marc.info/?l=kde-bugs-dist&m=140157563004619 https://bugs.kde.org/show_bug.cgi?id=3D335161 Thomas L=C3=BCbking changed: What |Removed |Added ---------------------------------------------------------------------------- Priority|NOR |VHI Status|REOPENED |CONFIRMED Version|unspecified |4.98.0 CC| |kdelibs-bugs@kde.org, | |thomas.luebking@gmail.com Component|pt-BR |general Assignee|kde-i18n-pt_br@kde.org |mgraesslin@kde.org Summary|[kf5] translation (pt_BR) |get_stringlist_reply |of "Desktop %1" broken |returns invalid data for | |single item lists Product|i18n |frameworks-kwindowsystem Severity|minor |critical --- Comment #34 from Thomas L=C3=BCbking --- Ok, let's fix the bug status then - this is not "minor" at all. ---------- The problem here is that QByteArray::fromRawData() is "implicitly shared" w= ith the provided POD and that QByteArray::split() will basically just "return QList() << *this;" if the BA doesn't contain the split parameter ("\0"), so you get a QBA List that only contains the QBA with the shared POD ... which is freed before the return. So we need an explicit deep copy of the QBA in the list instead. Some compiler/parameter combo apparently does not only free() but also EEEEEEEEEEEEEEEE the first 16 bytes of the freed data, but the data is in general invalid and can take any content any time. --=20 You are receiving this mail because: You are watching all bug changes.=