qt5base-lts/tests/auto
Marc Mutz 239b71d07d Fix use-after-delete bug in tst_QWidget::taskQTBUG_27643_enterEvents()
ASAN report:

  READ of size 8 at 0x606000011990 thread T0
    #0 0x505e3b in EnterTestMainDialog::eventFilter(QObject*, QEvent*) tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp:10294
    [...]

  0x606000011990 is located 48 bytes inside of 56-byte region [0x606000011960,0x606000011998)
  freed by thread T0 here:
    #0 0x2b8df3551c79 in operator delete(void*) ../../../../gcc/libsanitizer/asan/asan_new_delete.cc:92
    #1 0x418ab5 in EnterTestMainDialog::buttonPressed() tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp:10276

  previously allocated by thread T0 here:
    #0 0x2b8df3551739 in operator new(unsigned long) ../../../../gcc/libsanitizer/asan/asan_new_delete.cc:60
    #1 0x4188cf in EnterTestMainDialog::buttonPressed() tests/auto/widgets/kernel/qwidget/tst_qwidget.cpp:10272

EnterTestMainDialog::eventFilter() checks for nullness of 'modal'
before accessing it, but buttonPressed() did not reset 'modal'
to nullptr after deletion.

Change-Id: I65562a29f8264a6996d7d615e06de1d1afb5af53
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@digia.com>
2014-10-18 00:33:03 +02:00
..
android Update license headers and add new license files 2014-09-24 12:26:19 +02:00
bic/data test: Add 5.1.0 bic data for linux-gcc-ia32 2013-07-08 21:47:36 +02:00
cmake Update license headers and add new license files 2014-09-24 12:26:19 +02:00
compilerwarnings/data Update copyright year in Digia's license headers 2013-01-18 09:07:35 +01:00
concurrent Update license headers and add new license files 2014-09-24 12:26:19 +02:00
corelib QSettings: Prevent assert when passing empty keys. 2014-10-17 14:55:45 +02:00
dbus Update license headers and add new license files 2014-09-24 12:26:19 +02:00
gui Fix memory leak in QClipboard::setMimeData() 2014-10-10 13:37:59 +02:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
installed_cmake Add a unit test for testing Qt in its install location. 2013-07-02 23:08:54 +02:00
network Disable tst_qhostinfo on OS X. 2014-10-10 13:15:43 +02:00
opengl Update license headers and add new license files 2014-09-24 12:26:19 +02:00
other Gcc 4.5.* build fix. 2014-10-10 13:20:30 +02:00
printsupport Update license headers and add new license files 2014-09-24 12:26:19 +02:00
shared Update license headers and add new license files 2014-09-24 12:26:19 +02:00
sql Expose QSqlDriverPrivate dbmsType in public QSqlDriver api 2014-09-24 14:44:49 +02:00
testlib Update license headers and add new license files 2014-09-24 12:26:19 +02:00
tools Silence moc warnings about 'argument mismatch' 2014-09-25 15:42:40 +02:00
widgets Fix use-after-delete bug in tst_QWidget::taskQTBUG_27643_enterEvents() 2014-10-18 00:33:03 +02:00
xml Update license headers and add new license files 2014-09-24 12:26:19 +02:00
auto.pro iOS: Enable building of basic tests 2014-01-22 12:35:17 +01:00
network-settings.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
qtest-config.h Update license headers and add new license files 2014-09-24 12:26:19 +02:00
test.pl Update license headers and add new license files 2014-09-24 12:26:19 +02:00