Fix potential buffer overrun.
authorMartin Jones <martin.jones@nokia.com>
Mon, 28 May 2012 05:32:11 +0000 (15:32 +1000)
committerQt by Nokia <qt-info@nokia.com>
Tue, 29 May 2012 02:37:01 +0000 (04:37 +0200)
commit4285a99b14f05b604c266fdd33cf8edff7ff3ef3
treec506b7dfa018ef51146c7c60defa12264c172c4d
parent0e75b2568d706759aa4818d8af9131ed645b65b8
Fix potential buffer overrun.

Found by static analysis.  operator[]() accepts index up to
QVariant::UserType-1 but only QVariant::UserType-1 were allocated.

Change-Id: I0691fe268e3ba029441e43bdfcd191400ea21f38
Reviewed-by: Matthew Vogt <matthew.vogt@nokia.com>
src/qml/qml/qqmlvaluetype.cpp
src/qml/qml/qqmlvaluetype_p.h