qt5base-lts/tests/auto/corelib/tools
Ivan Solovev d11941db41 Q[Multi]Hash::reserve(): do nothing if desired size is less than current
Calling Q[Multi]Hash::reserve(n) when n is much smaller than the
current amount of elements in the hash, could result in an infinite
loop, because at some point the algorithm could not find a free bucket
for the element.

Fixing it by returning early if the new desired capacity is less than
current.

Fixes: QTBUG-102067
Pick-to: 6.3 6.2
Change-Id: I38ef0b2168c4e2a317eedf91b2155b1fdffb1c27
Reviewed-by: Mårten Nordheim <marten.nordheim@qt.io>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-04-06 16:46:59 +02:00
..
collections Add qt_internal_undefine_global_definition function 2022-02-02 16:45:37 +01:00
containerapisymmetry QByteArray/QVarLengthArray: add missing resize(n, v) overloads 2022-04-06 10:44:40 +00:00
qalgorithms Remove the qmake project files 2021-01-07 15:32:28 +01:00
qarraydata Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
qbitarray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcache Fix gcc warning in tests 2022-01-24 12:59:37 +00:00
qcommandlineparser Compile autotests for Integrity 2021-09-20 17:29:04 +03:00
qcontiguouscache Remove the qmake project files 2021-01-07 15:32:28 +01:00
qcryptographichash Cleanup tests that add test data to resources explicitly 2022-02-11 21:54:44 +01:00
qduplicatetracker QDuplicateTracker: add clear() 2021-11-11 13:26:14 -08:00
qeasingcurve Remove the qmake project files 2021-01-07 15:32:28 +01:00
qexplicitlyshareddatapointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qflatmap QFlatMap: make insertion STL-compatible 2022-03-16 18:28:27 +01:00
qfreelist CMake: Remove the usage of QT_SOURCE_TREE from tests 2021-07-12 18:56:14 +02:00
qhash Q[Multi]Hash::reserve(): do nothing if desired size is less than current 2022-04-06 16:46:59 +02:00
qhashfunctions Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
qhashseed tst_QHashSeed: improve quality of the quality() test 2021-11-23 20:48:08 -08:00
qline QLine/QMargins: add toLineF/toMarginsF() 2022-03-19 12:02:24 +01:00
qlist Fix build with C++20 on macOS 2022-02-11 22:56:35 +01:00
qmacautoreleasepool Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmakearray Remove the qmake project files 2021-01-07 15:32:28 +01:00
qmap Add qt_internal_undefine_global_definition function 2022-02-02 16:45:37 +01:00
qmargins QLine/QMargins: add toLineF/toMarginsF() 2022-03-19 12:02:24 +01:00
qmessageauthenticationcode Remove the qmake project files 2021-01-07 15:32:28 +01:00
qoffsetstringarray qlibraryinfo.cpp: use qOffsetStringArray for qtConfEntries 2021-11-03 14:54:37 -07:00
qpair Remove the qmake project files 2021-01-07 15:32:28 +01:00
qpoint QSize/QPoint: add toSizeF/toPointF() 2022-03-19 12:02:24 +01:00
qpointf Remove the qmake project files 2021-01-07 15:32:28 +01:00
qqueue Remove the qmake project files 2021-01-07 15:32:28 +01:00
qrect QRect: add toRectF() 2022-03-19 12:02:24 +01:00
qringbuffer Tests: Do not depend on transitive includes 2022-03-17 17:14:37 +01:00
qscopedpointer Disable warnings from using deprecated QScopedPointer::take 2021-02-13 06:44:52 +01:00
qscopedvaluerollback Remove the qmake project files 2021-01-07 15:32:28 +01:00
qscopeguard Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
qset Add qt_internal_undefine_global_definition function 2022-02-02 16:45:37 +01:00
qsharedpointer QWeakPointer: befriend other QWeakPointers 2022-03-04 19:00:45 -08:00
qsize QSize/QPoint: add toSizeF/toPointF() 2022-03-19 12:02:24 +01:00
qsizef Add more support for structured bindings 2021-02-25 16:08:44 +01:00
qstl Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtaggedpointer Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtimeline Port of QTimeLine to new property system 2021-04-26 16:44:54 +02:00
qvarlengtharray QVarLengthArray: don't allow syncqt to export base classes 2021-12-15 00:04:45 +01:00
qversionnumber QVersionNumber: port fromString() to QAnyStringView 2022-01-18 01:31:33 +01:00
CMakeLists.txt Activate tst_QTimeLine on Android 2022-02-10 15:14:57 +01:00