qt6-bb10/tests/auto/corelib
Volker Hilsheimer 3be99799a6 Don't access QObjectPrivate::declarativeData unguarded
The QObjectPrivate::declarativeData member is stored in a union with
currentChildBeingDeleted. The QObject destructor always sets the
currentChildBeingDeleted member of the union. It also sets the
isDeletingChildren bool, which is the only way to find out which union
member we can safely access.

While the QObject destructor is deleting children and isDeletingChildren
is set, we must not access the declarativeData member of the union.

Add a test case that initializes the function pointers for the
declarative handlers and constructs a situation where an object
emits a signal while it is destroying children.

Fixes: QTBUG-105286
Pick-to: 6.4 6.3 6.3.2 6.2 5.15
Change-Id: Iea5ba2f7843b6926a8d157be166e6044d98d6c02
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
2022-08-20 03:55:12 +02:00
..
animation Add license headers to cmake files 2022-08-03 17:14:55 +02:00
global Rename QT_DISABLE_DEPRECATED_BEFORE -> QT_DISABLE_DEPRECATED_UP_TO 2022-08-19 23:52:05 +02:00
io Rename QT_DISABLE_DEPRECATED_BEFORE -> QT_DISABLE_DEPRECATED_UP_TO 2022-08-19 23:52:05 +02:00
itemmodels Rename QT_DISABLE_DEPRECATED_BEFORE -> QT_DISABLE_DEPRECATED_UP_TO 2022-08-19 23:52:05 +02:00
kernel Don't access QObjectPrivate::declarativeData unguarded 2022-08-20 03:55:12 +02:00
mimetypes Add license headers to cmake files 2022-08-03 17:14:55 +02:00
platform Add license headers to cmake files 2022-08-03 17:14:55 +02:00
plugin Android: skip tst_QPluginLoader::loadSectionTableStrippedElf() 2022-08-18 13:52:06 +03:00
serialization Add license headers to cmake files 2022-08-03 17:14:55 +02:00
text Rename QT_DISABLE_DEPRECATED_BEFORE -> QT_DISABLE_DEPRECATED_UP_TO 2022-08-19 23:52:05 +02:00
thread Remove blacklist of tryAcquireWithTimeout on Windows 2022-08-07 16:05:03 +02:00
time Put code related to timezone functionality under QT_CONFIG(timezone) 2022-08-18 18:05:09 +00:00
tools Tests: remove #define COMMA 2022-08-09 12:13:26 -07:00
CMakeLists.txt Add license headers to cmake files 2022-08-03 17:14:55 +02:00