Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
5.2.0 RC1
-
None
-
All
-
cf51cdb8fb002ae3602a4c886e7c67913d77373a
Description
In QQmlImportDatabase::importPlugin when passing the uri to
ep->typeLoader.initializeEngine(eiface, moduleId);
it uses
const char *moduleId = uri.toUtf8().constData();
to convert to a utf8 char*. This does not work, as the underlying QByteArray is destroyed as soon as the function call is done.
Attachments
For Gerrit Dashboard: QTBUG-35355 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
73175,3 | QQmlImport: Don't try use a dangling pointer. | stable | qt/qtdeclarative | Status: MERGED | +2 | 0 |
73239,1 | QQmlImport: Don't try use a dangling pointer. | release | qt/qtdeclarative | Status: MERGED | +2 | 0 |