Fix access to uninitialised memory that might lead to crashes
authorThiago Macieira <thiago.macieira@intel.com>
Sun, 18 Dec 2011 14:33:52 +0000 (15:33 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 4 Apr 2012 18:22:01 +0000 (20:22 +0200)
commit95cb2a1b5caf7d7158dd1176380c1458ea22b54f
tree87a364ee6503ed14d479b775ecaf63171ebbe6c4
parent921882080470aa82055cf400ef0d291a03065bb9
Fix access to uninitialised memory that might lead to crashes

QMetaObject is POD, so its constructor is implicit and trivial
(doesn't initialise anything). QAbstractDynamicMetaObject doesn't add
a constructor, so the QMetaObject sub-object remains
uninitialised. The users of either class must ensure they initialise
the members if they will be accessed.

Change-Id: Ibb7f55ff23b78afb1fcb87382b30c8a28804c028
Task: QTBUG-23214
Reviewed-by: Rafael Roquetto <rafael.roquetto@kdab.com>
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/qml/qml/qqmlscript.cpp