diff options
author | Robin Burchell <robin.burchell@jollamobile.com> | 2013-12-03 21:47:02 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-12-04 15:40:18 +0100 |
commit | 20d2e3faf8b08fb70fdbca586db1d3839af4146a (patch) | |
tree | 7b3b5f87da08dad796ad5b0ea26014d8285dd0dc /tests/auto | |
parent | 6dbb25f944249f7b846be8b4d77165f054c5483f (diff) |
QQmlImport: Don't try use a dangling pointer.
toUtf8 would return a temporary, and constData would hold a pointer inside that
temporary. This isn't even remotely safe. Move the pointer use down to the
initializeEngine call so it is kept around long enough for us to do our stuff.
This is a backport of cf51cdb8fb002ae3602a4c886e7c67913d77373a.
Task-number: QTBUG-35355
Task-number: QTBUG-35343
Change-Id: I338ad7f4d4137445ed9a311a293ea82bf023aafd
Reviewed-by: Robin Burchell <robin+qt@viroteck.net>
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions