diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-07-18 09:17:35 +0200 |
---|---|---|
committer | Thiago Macieira <thiago.macieira@intel.com> | 2022-07-21 08:37:34 -0700 |
commit | 6a0e59ed506ecb7d6a1bc17beedd938d36a1d26f (patch) | |
tree | d65cb75892227f468d474b666a34f5a36ca7e162 /src/gui/kernel/qcursor.cpp | |
parent | 030923c0def8b4c08fef2e1b865f30dd7287a907 (diff) |
QVariant: Avoid crash when constructed from unsuitable metatype
If the metatype does not support copy and default construction, then it
it unsuitunsuitable for use in QMetaType. We cannot prevent users from
passing in such metatypes (as we have e.g. a ctor taking QMetaType), so
verify this in customConstruct, and make the variant invalid in that
case.
Pick-to: 6.2 6.3 6.4
Change-Id: Ib1f0149c8fb9a1cce0049fd0311980754cc85d1b
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Fabian Kosmale <fabian.kosmale@qt.io>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Diffstat (limited to 'src/gui/kernel/qcursor.cpp')
0 files changed, 0 insertions, 0 deletions