qt6-bb10/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 462f6029ed Fix crash when doing many text layouts with superscript/subscript
After e109b8a0f3, it is possible
that the cache will be flushed as a result of inserting a new
font rather than just when the timer event triggers. When doing
superscript and subscript text layouts, we would first get
a regular font engine, then a scaled one, and then reference
the regular font engine *after* getting the scaled one. If the
regular font engine was deleted as a result of inserting the scaled
one, we would get a dangling pointer and crash.

The situation was improved by 49926bb9ef.
You would now to switch between 256 different fonts in the layout
in order to trigger it. The test in the commit will trigger the
crash even with this change.

[ChangeLog][Qt Gui][Text] Fixed a crash that could happen if you
were doing many different text layouts with different fonts
and superscript or subscript alignment.

Task-number: QTBUG-53911
Change-Id: Ia33108252e030eff25924ef1b7c10b9d59b5bc8c
Reviewed-by: Lars Knoll <lars.knoll@qt.io>
2016-09-29 12:43:19 +00:00
..
qabstracttextdocumentlayout Update copyright headers 2015-02-11 06:49:51 +00:00
qcssparser tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qfont Tests: Harmonize code checking on platform name. 2015-09-24 07:49:30 +00:00
qfontcache Fix bugs causing Thin font weights to be ignored or mishandled. 2016-06-01 02:29:51 +00:00
qfontdatabase Update copyright headers 2015-02-11 06:49:51 +00:00
qfontmetrics Insert leading after each line, not before 2015-10-09 15:18:11 +00:00
qglyphrun Fix bounding rect of glyph runs in multi-line QTextLayout 2016-01-30 06:53:44 +00:00
qrawfont Blacklist and skip various tests that are flakey 2015-06-14 10:50:45 +00:00
qstatictext Enable most of tst_qstatictext on non-developer builds 2016-03-10 15:45:41 +00:00
qsyntaxhighlighter tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextblock tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextcursor Hide better the private API QTextCursor constructors 2016-01-22 03:36:16 +00:00
qtextdocument Add missing test for QReguarExpression for QTextDocument::findMultiple 2016-09-20 21:23:08 +00:00
qtextdocumentfragment tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextdocumentlayout tst_qtextcocumentlayout::blockVisibility - make the test more robust 2016-01-19 14:48:47 +00:00
qtextformat tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextlayout Fix crash when doing many text layouts with superscript/subscript 2016-09-29 12:43:19 +00:00
qtextlist tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextobject Update copyright headers 2015-02-11 06:49:51 +00:00
qtextodfwriter Update copyright headers 2015-02-11 06:49:51 +00:00
qtextpiecetable tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qtextscriptengine Update copyright headers 2015-02-11 06:49:51 +00:00
qtexttable tests/auto/gui: Replace Q[TRY]_VERIFY(a == b) by Q[TRY]_COMPARE(a, b). 2015-07-31 08:29:15 +00:00
qzip QZip*: don't hold QZipReader::FileInfo in QList 2015-07-19 10:35:41 +00:00
text.pro Enable most of tst_qstatictext on non-developer builds 2016-03-10 15:45:41 +00:00