path: root/examples/embedded/raycasting/
diff options
authorVolker Hilsheimer <>2022-08-16 15:32:58 +0200
committerVolker Hilsheimer <>2022-08-20 03:55:12 +0200
commit3be99799a675a631c67e05897383af9abbc377b3 (patch)
treeaf68fd8ad3b8a58ecfc28da223cbfe892173a345 /examples/embedded/raycasting/
parent503018ae070d9d39ab85b66499e14a8085adf51e (diff)
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 <> Reviewed-by: MÃ¥rten Nordheim <>
Diffstat (limited to 'examples/embedded/raycasting/')
0 files changed, 0 insertions, 0 deletions