summaryrefslogtreecommitdiffstats
path: root/tests/auto/widgets/graphicsview
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2016-01-06 23:10:12 +0100
committerMarc Mutz <marc.mutz@kdab.com>2016-01-07 13:00:32 +0000
commit9c7be0a7ec92a28d5d489fb78c500dad3f01d9ec (patch)
treecc87c7e80f4d06cd233fb87708d04d98eea72f94 /tests/auto/widgets/graphicsview
parentf5291bf8b4f74e7dcaa4911594fae8c929e28229 (diff)
Fix UB in tst_QDialog::showExtension()
Don't cast a QDialog to a subclass it is not. Fix by creating it as the required subclass in the first place. Found by UBSan: tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp:203:20: runtime error: downcast of address 0x2b5f5000ad40 which does not point to an object of type 'DummyDialog' tests/auto/widgets/dialogs/qdialog/tst_qdialog.cpp:203:46: runtime error: member call on address 0x2b5f5000ad40 which does not point to an object of type 'DummyDialog' Change-Id: I63ae7e782bda6a78d11af5c2bc2f7d88aacd0ac0 Reviewed-by: David Faure <david.faure@kdab.com> Reviewed-by: Lars Knoll <lars.knoll@theqtcompany.com>
Diffstat (limited to 'tests/auto/widgets/graphicsview')
0 files changed, 0 insertions, 0 deletions