Coverity has this checker where it complains if you use a T as a T[1]. The C++ standard says that this is fine¹, but qurlrecode.cpp, specifically, is security-critical, so we shouldn't leave Coverity issues unfixed in there. So replace ucs4 with a buffer[1] array and make both dst and ucs4 point to buffer's first (and only) element. Amends 2b82923c8fba5dcff707e344acdf9db8c444a55e. ¹ https://eel.is/c++draft/basic.compound#3.sentence-11 Pick-to: 6.8 6.5 Coverity-Id: 378435 Change-Id: I8ab2f70b542088e90dc43e616a0202e8c756f204 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> (cherry picked from commit 7a32a2238f52217bc4f0dc4c9620a2a2d350a1ca) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
…
…
Description
Languages
C++
84.3%
HTML
4.9%
C
3.9%
CMake
3.6%
Objective-C++
2%
Other
0.8%