qt5base-lts/tests/auto/corelib/serialization
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
..
json JSON: When clearing duplicate object entries, also clear containers 2022-01-18 02:31:30 +01:00
qcborstreamreader tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qcborstreamwriter tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qcborvalue tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qcborvalue_json tests: Remove unused SRCDIR defines 2021-08-17 12:41:57 +00:00
qdatastream Remove unused .qrc files 2022-01-17 23:17:01 +01:00
qdatastream_core_pixmap Remove the qmake project files 2021-01-07 15:32:28 +01:00
qtextstream Fix tst_qtextstream / tst_json run time failures on INTEGRITY device 2021-12-28 09:24:58 +02:00
qxmlstream Remove execute permission from XML files 2022-01-17 18:47:22 +01:00
cborlargedatavalidation.cpp Replace QtTest headers with QTest 2020-12-22 15:20:30 +01:00
CMakeLists.txt Exclude tst_qxmlstream test for INTEGRITY 2021-12-28 18:56:07 +00:00