qt5base-lts/tests/auto/gui/text
Rainer Keller af6ac444c9 Fix crash when text contains too many directional chars
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 1232205e32)
Reviewed-by: Jukka Jokiniva <jukka.jokiniva@qt.io>
Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
2019-08-31 08:29:31 +00:00
..
qabstracttextdocumentlayout Make imageAt and formatAt more robus against different font metrics 2016-08-12 03:59:23 +00:00
qcssparser Merge remote-tracking branch 'origin/5.12' into dev 2018-10-25 07:21:53 +02:00
qfont Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
qfontcache Handle fonts that have commas/quotes in the family name 2018-11-08 16:08:25 +00:00
qfontdatabase winrt: Return monospace font for QFontDatabase::systemFont(QFontDatabase::FixedFont) 2019-05-15 18:08:01 +00:00
qfontmetrics Fix text shifting vertically when elided 2018-12-21 10:27:12 +00:00
qglyphrun Merge remote-tracking branch 'origin/5.12' into dev 2019-01-04 07:33:14 +01:00
qinputcontrol Accept all formatting characters as valid input 2017-01-26 10:59:49 +00:00
qrawfont [Windows] Fixed regression when creating fallback fonts 2019-02-14 08:01:05 +00:00
qstatictext Merge remote-tracking branch 'origin/5.11' into dev 2018-07-17 10:19:22 +02:00
qsyntaxhighlighter tst_qsyntaxhighlighter: fix no-op QTRY_VERIFY check 2019-01-16 14:23:42 +00:00
qtextblock Updated license headers 2016-01-21 18:55:18 +00:00
qtextcursor Fix crash when detaching dangling QTextCursor 2018-09-27 06:51:37 +00:00
qtextdocument Handle multiple font-families in <font> face attribute 2019-07-03 13:21:14 +02:00
qtextdocumentfragment Merge remote-tracking branch 'origin/5.12' into 5.13 2019-02-15 01:00:51 +01:00
qtextdocumentlayout Fix page breaking with large images 2019-04-26 18:21:18 +00:00
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Fix crash when text contains too many directional chars 2019-08-31 08:29:31 +00:00
qtextlist Updated license headers 2016-01-21 18:55:18 +00:00
qtextobject Updated license headers 2016-01-21 18:55:18 +00:00
qtextodfwriter Add more formatting to QTextDocumentWriter when writing ODF files 2018-04-11 18:44:31 +00:00
qtextpiecetable Change almost all other uses of qrand() to QRandomGenerator 2017-11-08 09:14:03 +00:00
qtextscriptengine qtbase: Remove BLACKLIST files which are no longer active 2018-02-12 17:40:12 +00:00
qtexttable Fix QTextTable:insertRows() for tables with spanning cells 2019-02-09 08:01:08 +00:00
qzip update testdata 2016-08-31 10:00:29 +00:00
text.pro Build examples and tests only if their requirements are met 2017-03-22 15:55:55 +00:00