diff options
| author | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-05-25 09:07:37 +0200 |
|---|---|---|
| committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2022-05-25 16:38:35 +0200 |
| commit | c46ee7df57c30c94107df8506d30d8872ffa3baa (patch) | |
| tree | 74e2f1c109210ec38f634699ce879bf081a2cd02 /src/tools/uic/cpp/cppwriteinitialization.cpp | |
| parent | d83441340c210056d25777ed59ec6dab6351a55f (diff) | |
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>
Diffstat (limited to 'src/tools/uic/cpp/cppwriteinitialization.cpp')
0 files changed, 0 insertions, 0 deletions
