qt6-bb10/tests/auto/corelib
Ulf Hermann 1b4a5ecc91 JSON: When clearing duplicate object entries, also clear containers
Previously, if you had multiple entries with the same name in an object,
and some of them were again objects or arrays, parsing the JSON document
would leak memory.

Also, we use std::stable_sort instead of std::sort now, so that we don't
accidentally randomize the order of elements with equal keys.

[ChangeLog][QtCore][JSON] A memory leak in the JSON parser when reading
objects with duplicate keys was fixed.

Pick-to: 5.15 6.2 6.3
Fixes: QTBUG-99799
Change-Id: Ic2065f2e490c2d3506a356745542148ad9c24262
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
2022-01-18 02:31:30 +01:00
..
animation tst_qanimationgroup: fix memleaks 2022-01-05 08:22:00 +01:00
global tst_qglobalstatic is halted on INTEGRITY device 2021-12-20 10:14:38 +02:00
io Remove unused .qrc files 2022-01-17 23:17:01 +01:00
itemmodels tst_QItemModel: fix memleaks 2022-01-05 08:22:00 +01:00
kernel Remove unused .qrc files 2022-01-17 23:17:01 +01:00
mimetypes Remove unused .qrc files 2022-01-17 23:17:01 +01:00
platform Android: Add runOnMainAndroidThread() under QNativeInterface 2021-05-26 23:24:11 +00:00
plugin Q*Parser: Replace "data" with "contents" in strings 2022-01-12 23:10:01 +01:00
serialization JSON: When clearing duplicate object entries, also clear containers 2022-01-18 02:31:30 +01:00
text QLatin1String: perform the comparison to another QL1S using memcmp() 2022-01-17 22:17:01 +00:00
thread tst_qfuture: fix compilation on MSVC 2022-01-08 01:54:18 +02:00
time Fix an assertion failure in massageAdjustedDateTime() 2022-01-13 19:47:22 +01:00
tools QVersionNumber: port fromString() to QAnyStringView 2022-01-18 01:31:33 +01:00
CMakeLists.txt Add tests for QAndroidApplication's sdkVersion and activity 2021-05-13 01:41:36 +03:00