summaryrefslogtreecommitdiffstats
path: root/src/gui/opengl/qopenglprogrambinarycache.cpp
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@qt.io>2022-04-11 16:30:12 +0200
committerMarc Mutz <marc.mutz@qt.io>2022-04-13 01:16:22 +0200
commit9c028b0ff4e684d9bb27df7171575a618e892267 (patch)
treec191edae26cc1baae821cf817bb4f60594ecbe94 /src/gui/opengl/qopenglprogrambinarycache.cpp
parentd99e8d96b60ad46552c09033faf167046dc6316a (diff)
XmlStringRef: fix length truncation
The XmlStringRef(const QString*) ctor calls the (const QString *, int, int) ctor, passing QString::length() as the third argument. If the input QString had more than 2 Gi characters, the resulting XmlStringRef represents only the prefix of the input (mod (INT_MAX+1)). Fix by making the delegatee ctor use qsizetype instead of int, allowing to pass data through without truncation. [ChangeLog][QtCore][QXmlStreamReader] Fixed several bugs regarding handling of documents larger than 2Gi characters on 64-bit platforms. Pick-to: 6.3 6.2 Fixes: QTBUG-102466 Change-Id: Ie48274190ac359f62d3ec3d8fe60eb43cc2c362a Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Diffstat (limited to 'src/gui/opengl/qopenglprogrambinarycache.cpp')
0 files changed, 0 insertions, 0 deletions