diff options
author | Rainer Keller <Rainer.Keller@qt.io> | 2019-08-27 14:44:48 +0200 |
---|---|---|
committer | Jukka Jokiniva <jukka.jokiniva@qt.io> | 2019-08-31 08:29:31 +0000 |
commit | af6ac444c97ed2dc234f93fe457440c9da5482ea (patch) | |
tree | ccab66846b2a462dba57e0acad394933dcf937de /src/gui/text/qtextdocumentlayout_p.h | |
parent | 97465b1540ebd095225679b5dd400b2d4d54e678 (diff) |
Fix crash when text contains too many directional charsv5.13.1
In case a text to be layouted contains more than 128 directional characters
it causes the application to crash
The function initScriptAnalysisAndIsolatePairs() collects information of
RTL/LTR chaaracters into vector "isolatePairs". The size of the vector is
capped to 128. Later the function generateDirectionalRuns() iterates
the text again and tries to access items from the previously capped vector
above the upper bound.
Task-number: QTBUG-77819
Change-Id: Ibb7bf12c12b1db22f43ff46236518da3fdeed26a
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
(cherry picked from commit 1232205e32464d90e871f39eb1e14fcf9b78a163)
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src/gui/text/qtextdocumentlayout_p.h')
0 files changed, 0 insertions, 0 deletions