diff options
author | Alex Trotsenko <alex1973tr@gmail.com> | 2022-01-12 19:13:46 +0200 |
---|---|---|
committer | Alex Trotsenko <alex1973tr@gmail.com> | 2022-01-13 02:09:08 +0200 |
commit | a93f07e9773257ac9385b6f7e3ca92df20318450 (patch) | |
tree | 2e5c0b0700a11403207d7c6bea70dd40c221e4ff /mkspecs | |
parent | 0bc7f94bd8949b89b75c2730a743a2bbf74a0c01 (diff) |
tst_qeventdispatcher: fix UB in single-shot timers activation
Any of these timers must be stopped before the corresponding test
function completes. Otherwise, functors will operate on dangling
pointers, which can lead to failures or unreliability of other tests.
Fix this by setting a correct context in the QTimer::singleShot()
call.
Pick-to: 6.2 6.3
Change-Id: Icd23f6d9a2c6e7f33495d6badc4080a1b10c19f8
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Reviewed-by: MÃ¥rten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@gmx.de>
Diffstat (limited to 'mkspecs')
0 files changed, 0 insertions, 0 deletions