Fixed uninitialized memory in QMetaObjectBuilder::fromRelocatableData
authorRohan McGovern <rohan.mcgovern@nokia.com>
Tue, 1 May 2012 05:02:48 +0000 (15:02 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 1 May 2012 07:41:27 +0000 (09:41 +0200)
commit40a73d7c63950caef47571ce9c53624e86324db3
tree651af90fcd4635c3334d734b9a4084d5a4d780c7
parente1d53553259e7edefb2a76712fd6a1ddc072d22d
Fixed uninitialized memory in QMetaObjectBuilder::fromRelocatableData

static_metacall was never set on the metaobject written by
QMetaObjectBuilder::fromRelocatableData, sometimes causing a crash.  It
should be initialized to 0.

Change-Id: I79373d895e131f0cc2ff1af6d2177a0c1a282be7
Reviewed-by: Toby Tomkins <toby.tomkins@nokia.com>
Reviewed-by: Olivier Goffart <ogoffart@woboq.com>
src/corelib/kernel/qmetaobjectbuilder.cpp
tests/auto/corelib/kernel/qmetaobjectbuilder/tst_qmetaobjectbuilder.cpp