Crash fix in QMetaType::typeFlags.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Thu, 8 Mar 2012 14:56:33 +0000 (15:56 +0100)
committerQt by Nokia <qt-info@nokia.com>
Sun, 11 Mar 2012 21:04:21 +0000 (22:04 +0100)
commite3429f764b37c3d58faf06c6e1856e66fb8d64b9
treeb04e08ead1d97214e3c5d992511095773a3fd19f
parente9ed5853f4c5600691d2f369e26a1a7881f9750f
Crash fix in QMetaType::typeFlags.

The function is public, so it should validate input instead of crashing

Change-Id: Id67463b0b61ab74a76c1ede7f052bdbed37822b6
Reviewed-by: Stephen Kelly <stephen.kelly@kdab.com>
src/corelib/kernel/qmetatype.cpp
tests/auto/corelib/kernel/qmetatype/tst_qmetatype.cpp