qt6-bb10/tests/auto/widgets/dialogs
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
..
qcolordialog Update copyright headers 2015-02-11 06:49:51 +00:00
qdialog Fix UB in tst_QDialog::showExtension() 2016-01-07 13:00:32 +00:00
qerrormessage Update copyright headers 2015-02-11 06:49:51 +00:00
qfiledialog Fix crash in QFileDialog::iconProvider() with native dialogs 2015-11-24 08:35:42 +00:00
qfiledialog2 QFileDialog: Stabilize tests. 2015-05-01 06:03:10 +00:00
qfilesystemmodel Update copyright headers 2015-02-11 06:49:51 +00:00
qfontdialog Font definitions with different style names are not equal 2015-06-03 14:00:07 +00:00
qinputdialog Update copyright headers 2015-02-11 06:49:51 +00:00
qmessagebox Replace MAC OS X with OS X 2015-06-30 07:33:31 +00:00
qprogressdialog Update copyright headers 2015-02-11 06:49:51 +00:00
qsidebar Update copyright headers 2015-02-11 06:49:51 +00:00
qwizard Update copyright headers 2015-02-11 06:49:51 +00:00
dialogs.pro Replace win32-g++ with mingw scope 2014-01-17 12:08:24 +01:00