Crash fix in QMetaType::typeName.
authorJędrzej Nowacki <jedrzej.nowacki@nokia.com>
Thu, 8 Mar 2012 14:36:38 +0000 (15:36 +0100)
committerQt by Nokia <qt-info@nokia.com>
Thu, 8 Mar 2012 15:04:02 +0000 (16:04 +0100)
commitcf6dd5baca26c202de26c8366010a8958ea08d20
tree53f2fba4679174824c44ca0724015529895d4d40
parentf71487da3a93ec5f52af496301d91e5b8777494d
Crash fix in QMetaType::typeName.

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

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