qt5base-lts/tests/auto/widgets
Marc Mutz 9c7be0a7ec 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>
2016-01-07 13:00:32 +00:00
..
dialogs Fix UB in tst_QDialog::showExtension() 2016-01-07 13:00:32 +00:00
effects fix usage of wince scope 2015-06-05 10:29:10 +00:00
gestures QSwipeGestureRecognizer: Allow for small direction changes. 2015-06-07 20:10:12 +00:00
graphicsview Revert "Fix global coordinate mapping for child widgets in QGraphicsView." 2016-01-05 08:18:18 +00:00
itemviews QListView: Use correct available size when calculating scrollbars. 2015-10-12 08:41:06 +00:00
kernel Stabilize tst_QApplication::touchEventPropagation(). 2015-07-16 21:45:28 +00:00
styles fix usage of wince scope 2015-06-05 10:29:10 +00:00
util tst_QUndoGroup, tst_QUndoStack Fixed flag QT_NO_PROCESS 2015-09-14 06:26:39 +00:00
widgets QWidgetWindow: The alien widget should be from the window's hierarchy 2015-12-21 23:02:40 +00:00
widgets.pro Add autotest for QGestureRecognizer. 2014-10-23 21:11:28 +02:00