diff options
author | Marc Mutz <[email protected]> | 2022-07-18 16:27:52 +0200 |
---|---|---|
committer | Marc Mutz <[email protected]> | 2022-07-20 11:15:58 +0000 |
commit | 87fabf3e4b7a5ccc00a7b76b4098e2174e4514d8 (patch) | |
tree | 1eb9c4ae8386f46e0e59df91edb5b12bd75396a0 /src/concurrent/qtconcurrentreducekernel.h | |
parent | 1a40bc37d4c0fa8a79460411635ec02e74215ede (diff) |
QLocale/Win: fix truncation bug in winIso639LangName()
The qstrtoull() function returns ulonglong, not int, so we'd be
incorrectly detecting 0x1'0000'0814 as NyNorsk. Paranoia? Sure.
Fix by using auto to hold the result.
As a drive-by, make the QByteArray const so .data() doesn't
attempt to detach(), and shorten a long variable name to stay
within line-length limitations.
Pick-to: 6.4 6.3 6.2
Task-number: QTBUG-103531
Change-Id: I740d0c5934e54c9f716688fa9c00de0ac4029936
Reviewed-by: Qt CI Bot <[email protected]>
Reviewed-by: Edward Welbourne <[email protected]>
Diffstat (limited to 'src/concurrent/qtconcurrentreducekernel.h')
0 files changed, 0 insertions, 0 deletions