diff options
author | Edward Welbourne <edward.welbourne@qt.io> | 2022-11-24 17:50:02 +0100 |
---|---|---|
committer | Edward Welbourne <edward.welbourne@qt.io> | 2022-11-25 14:28:48 +0100 |
commit | e36457c0436a6205570f5f442565dbb08f59ac3b (patch) | |
tree | 189470d013a907360bb60eccee65315fdfae1858 /src/corelib/kernel/qvariant.cpp | |
parent | ef379f95c7621272933b06fb3edfe502b14bd145 (diff) |
Fix out-of-bounds assert in winIso639LangName()
QByteArray doesn't allow accessing, with operator[], the '\0' byte it
stores at index size(). Previously we accessed it indirectly by
dereferencing a pointer offset from its data() instead of indexing; my
recent change converted the return of an endptr to the return of its
index, so used operator[].
This is a follow-up to commit 6c435e5dd41177308f22ba4b55931b2c463cb0d8
Change-Id: I9faf9dfa3dcc8df1e841e5538e452afef9ba610c
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Qt CI Bot <qt_ci_bot@qt-project.org>
Reviewed-by: Alessandro Portale <alessandro.portale@qt.io>
Diffstat (limited to 'src/corelib/kernel/qvariant.cpp')
0 files changed, 0 insertions, 0 deletions