qt5base-lts/tests/auto
Joerg Bornemann 6dbf357609 Fix asserts and crashes in QWinEventNotifier activation loop
The backwards iteration was done under the assumption that the only
valid modification of the winEventNotifierList in a slot connected to
activated() would be the removal of the notifier itself. This is wrong.

Instead, iterate forwards, like before 85403d0a, and check the index
against the current list size in every iteration. This ensures that we
do not run out of bounds while the list is modified.

Also, retry the activation loop if the list was modified by a slot
connected to activated(). This ensures that all notifiers with signaled
handles are activated.

Task-number: QTBUG-65940
Change-Id: I25f305463b9234f391abc51fe0628d02f49b6931
Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io>
2018-01-26 06:14:01 +00:00
..
android
bic/data Add binary compatibility files for QtBase for 5.10 2018-01-04 16:26:32 +00:00
cmake CMake: Set SKIP_AUTOMOC/AUTOUIC where needed 2017-11-22 13:51:30 +00:00
compilerwarnings/data
concurrent Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
corelib Fix asserts and crashes in QWinEventNotifier activation loop 2018-01-26 06:14:01 +00:00
dbus Use QSharedPointer::create() more 2017-07-19 13:40:42 +00:00
gui Merge "Merge remote-tracking branch 'origin/5.9' into 5.10" into refs/staging/5.10 2018-01-24 18:36:41 +00:00
guiapplauncher
installed_cmake
network Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-09 21:27:30 +01:00
opengl Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
other Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-24 13:38:25 +01:00
printsupport Convert features.completer to QT_[REQUIRE_]CONFIG 2017-09-04 11:28:02 +00:00
shared Remove workaround for potentially unavailable pasteboard in macOS 2017-03-07 01:04:46 +00:00
sql sqlite: Bind duplicated named placeholders correctly 2018-01-08 10:13:10 +00:00
testlib Make QCOMPARE print QColor alpha values on failure 2017-11-03 14:29:49 +00:00
tools Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-19 09:48:10 +01:00
widgets Merge remote-tracking branch 'origin/5.9' into 5.10 2018-01-24 13:38:25 +01:00
xml Don't indefinitely wait for data if it was able to read some data 2018-01-24 05:54:31 +00:00
auto.pro tests/auto/auto.pro: Use correct null device for DBUS check 2017-12-01 09:53:07 +00:00
network-settings.h