Skip to content

Fix for toUtf8(): QByteArray returned is temporary

Toni Schriber requested to merge escriban/kstars:utf8 into master

The regression was introduced with a13a7350. The function toUtf8() returns a temporary array and gets destroyed with the call of constData(). So it produces a dangling pointer with (more or less) random content. A solution is presented here.

Edited by Toni Schriber

Merge request reports

Loading