qt6-bb10/src
Thiago Macieira 333b40a12e QUtf32: fix bad assertion in convertFromUnicode
Looks like it was copied from QUtf16::convertFromUnicode(), but for the
UTF-32 case that is not correct. UTF-16 to UTF-32 conversions can change
the length of the string due to surrogates.

There are unit test tests for creating and parsing UTF-32 headers, and
for detecting content as UTF-32, but there aren't any for UTF-32
conversions. I don't have time to add a full test for that.

Fixes: QTBUG-97122
Pick-to: 6.2 6.1
Change-Id: Ic17a33f599b844d8ab5dfffd16ab2c4cb6b0547d
Reviewed-by: Ievgenii Meshcheriakov <ievgenii.meshcheriakov@qt.io>
Reviewed-by: Edward Welbourne <edward.welbourne@qt.io>
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2021-10-11 11:08:15 -07:00
..
3rdparty Update Harfbuzz to version 3.0.0 2021-10-05 21:53:10 +02:00
android Android: Update and add missing gradle files for jar folders 2021-10-06 16:05:19 +03:00
concurrent Remove checks for features available in C++17 2021-10-02 17:54:39 +02:00
corelib QUtf32: fix bad assertion in convertFromUnicode 2021-10-11 11:08:15 -07:00
dbus Doc: Make it explicit when CMake API is defined 2021-10-05 15:48:22 +02:00
entrypoint Adjust the EntryPoint target name according to the internal module naming policy 2021-06-15 12:51:49 +02:00
gui gl: Try the local CacheLocation when the shared one fails 2021-10-08 11:07:15 +02:00
network Http/2 - handle PADDED flag correctly 2021-10-09 12:49:01 +02:00
opengl Add some debug warnings to the GL paint engine regarding stencil 2021-09-23 16:27:59 +02:00
openglwidgets Migrate to autogenerated cpp exports 2021-06-25 19:33:12 +02:00
platformsupport High resolution wheel-event support from libinput 2021-09-18 15:39:07 +00:00
plugins QGtk3Theme: implement appearance function to detect dark themes 2021-10-11 16:18:38 +02:00
printsupport Doc: Remove unsupported customFilters 2021-09-03 15:14:59 +00:00
sql Doc: Prettify -G cmake arguments in SQL drivers documentation 2021-10-08 14:16:51 +02:00
testlib QTest: support initMain() in QTEST_APPLESS_MAIN 2021-10-05 21:53:10 +02:00
tools androiddeployqt: Use QElapsedTimer to get elapsed time 2021-10-08 20:03:22 +02:00
widgets QDialog: respect WA_ShowWithoutActivating 2021-10-11 15:48:33 +02:00
xml Doc: Remove unsupported customFilters 2021-09-03 15:14:59 +00:00
CMakeLists.txt Make it possible to disable the PrintSupport module 2021-02-09 09:17:21 +01:00