qt6-bb10/tests/auto/corelib
Thiago Macieira c07c2d5a52 CBOR/JSON: fix crash when comparing strings with different length
Amends 8e5ce9cd36, which introduced the
QtPrivate::equalStrings() call. At that time, equalStrings() had already
required equal lengths (see 1560e0161a),
so no excuse.

[ChangeLog][QtCore][QCborMap and QJsonObject] Fixed bug that could
result in a crash or failing to find a entry in the map/object with non-
ASCII keys.

Manual conflict resolution for 6.9:
- Port from keyView() to key(), because the former is a 6.10+ feature.

Fixes: QTBUG-133744
Change-Id: I6b0f8b0a2e47d3ef905afffda6c4c079814a0914
Reviewed-by: Marc Mutz <marc.mutz@qt.io>
(cherry picked from commit 54daec43a041cb69cff31cbfd1dd0b7127e8ba87)
(cherry picked from commit 8e94b67ba11fecfee134950eaae5c5b29812e82c)
Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
(cherry picked from commit d4a90a3f3013eae4e837fbd2df63d5803f19608a)
2025-03-17 13:10:27 +00:00
..
animation Change license for tests files 2024-02-04 09:56:42 +01:00
global tst_QGetPutEnv: use a lambda instead of a macro 2025-02-15 09:49:47 +00:00
io tst_QUrl: improve toNSURL()/toCFURL() tests 2025-03-04 22:21:55 +00:00
ipc Add REUSE.toml files 2024-11-07 08:38:49 +01:00
itemmodels QConcatenateTablesProxyModel: react to row and column moves 2024-09-13 17:44:05 +00:00
kernel tst_Q*Application: add tests for unusual qApp creations and exits 2025-01-20 13:31:34 -08:00
mimetypes Add REUSE.toml files 2024-11-07 08:38:49 +01:00
platform Move UUID definitions out of Qt namespace 2025-02-08 08:08:51 +00:00
plugin tst_QUuid: fix -Wreturn-type in make_minimal(QUuid::Version) 2025-01-25 14:21:25 +00:00
serialization CBOR/JSON: fix crash when comparing strings with different length 2025-03-17 13:10:27 +00:00
text tst_QByteArray: check replace() doesn't replace the terminating \0 2025-03-01 23:45:32 +00:00
thread tst_qfuture: silence all continuation overwrite warnings 2025-02-12 12:44:15 +00:00
time Add explicit test coverage for QTimezone::utc 2025-03-04 08:51:32 +00:00
tools tst_QCryptographicHash: remove remnants of BigData split 2025-02-21 21:24:30 +00:00
CMakeLists.txt tests: Remove remains of qmake conversion from CMakeLists.txt files 2023-02-17 21:56:49 +01:00