qt5base-lts/tests/auto/corelib/text/qstringconverter
Fabian Kosmale c46ee7df57 QStringConverter: Do not crash if invalid
Attempting to use an invalid QStringConverter would so far have resulted
in a crash, as we would dereference the null iface pointer.
Fix this by inserting adequate checks, and ensure that hasError returns
true if we attempt to en/decode with an invalid converter.

Pick-to: 6.2 6.3
Change-Id: Icf74bb88cd8c95685481cc0bd512da99b62f33e6
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2022-05-25 16:38:35 +02:00
..
CMakeLists.txt tst_QStringConverter: improve the char-by-char UTF-8 testing 2022-05-23 14:53:18 -07:00
tst_qstringconverter.cpp QStringConverter: Do not crash if invalid 2022-05-25 16:38:35 +02:00