qt5base-lts/tests/auto/corelib/thread
Andrei Golubev ba511b2fa4 Reject overwrites by the same index in QPromise::addResult()
One can call addResult(value, index) twice and consequently set the
value twice by the same index. This seems rather strange and probably
should not be allowed. This commit rejects setting results when there's
already a valid result by that index. Consequently, this fixes memory
leaks caused by N-times-called addResult(..., index)

Fixes: QTBUG-86828
Change-Id: I77494f2cb73ce727ffad721cfcdcaa420899eb25
Reviewed-by: Sona Kurazyan <sona.kurazyan@qt.io>
2020-10-13 17:04:16 +02:00
..
qatomicint Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qatomicinteger CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qatomicpointer Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qfuture Reject overwrites by the same index in QPromise::addResult() 2020-10-13 17:04:16 +02:00
qfuturesynchronizer CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qfuturewatcher CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmutex CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qmutexlocker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qpromise Reject overwrites by the same index in QPromise::addResult() 2020-10-13 17:04:16 +02:00
qreadlocker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qreadwritelock Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qresultstore Clear pending results in ResultStore 2020-10-09 16:26:01 +02:00
qsemaphore Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qthread Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qthreadonce CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qthreadpool Another round of replacing 0 with nullptr 2020-10-07 23:02:47 +02:00
qthreadstorage CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qwaitcondition CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
qwritelocker CMake: Regenerate projects to use new qt_internal_ API 2020-09-23 16:59:06 +02:00
.prev_CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
CMakeLists.txt CMake: Skip / ignore failing tests on CMake platforms 2020-07-01 14:55:29 +02:00
thread.pro Add QPromise implementation 2020-06-09 17:21:38 +03:00