qt5base-lts/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 65a1d41a09 Fix potential crash when showing line/paragraph separators
When showing line and paragraph separators at an offset from the start
of the string, the end of string pointer would be incorrectly set, and
we would read past the end of the string. If any part of this memory
happened to match the line or paragraph separator, then we would
overwrite it and have a crash.

I couldn't find any reliable way to test this, since the crash depends on
the contents of the memory after the string allocated by the algorithm.
But with an overflow of 100 000 characters, I found that it crashed every
time I ran the test.

[ChangeLog][QtGui][Text] Fixed potential crash when using
QTextOption::ShowLineAndParagraphSeparators.

Task-number: QTBUG-69661
Change-Id: I17d1996b883560bacdc7ce114c8aeb2b0108faea
Reviewed-by: JiDe Zhang <zccrs@live.com>
Reviewed-by: Michal Lazo <xlazom00@gmail.com>
Reviewed-by: Konstantin Ritt <ritt.ks@gmail.com>
2018-08-09 12:46:22 +00:00
..
qabstracttextdocumentlayout Make imageAt and formatAt more robus against different font metrics 2016-08-12 03:59:23 +00:00
qcssparser Remove references to obsolete platforms 2017-11-05 06:33:53 +00:00
qfont Android: tst_QFont: QEXPECT_FAIL a couple failing checks 2018-06-30 19:32:53 +00:00
qfontcache Avoid synthesizing stretch on condensed font families 2016-08-15 11:39:44 +00:00
qfontdatabase Android: QEXPECT_FAIL tst_QFontDatabase::condensedFontMatching 2018-06-30 19:32:54 +00:00
qfontmetrics Update usage of QFontMetrics::width() to new API 2017-12-08 15:06:32 +00:00
qglyphrun Accept error margin in QGlyphRun/QStaticText test for decorations 2017-02-02 15:10:41 +00:00
qinputcontrol Accept all formatting characters as valid input 2017-01-26 10:59:49 +00:00
qrawfont Android: QEXPECT_FAIL in tst_QRawFont::fallbackFontsOrder 2018-06-30 19:32:56 +00:00
qstatictext Android: tst_QStaticText: QEXPECT_FAIL some tests 2018-06-30 19:32:57 +00:00
qsyntaxhighlighter Updated license headers 2016-01-21 18:55:18 +00:00
qtextblock Updated license headers 2016-01-21 18:55:18 +00:00
qtextcursor Merge remote-tracking branch 'origin/5.6' into dev 2016-01-26 16:27:28 +01:00
qtextdocument Android: QEXPECT_FAIL tst_QTextDocument::task240325 2018-07-04 14:32:23 +00:00
qtextdocumentfragment Updated license headers 2016-01-21 18:55:18 +00:00
qtextdocumentlayout Merge "Merge remote-tracking branch 'origin/5.6' into dev" into refs/staging/dev 2016-01-26 11:27:37 +00:00
qtextformat Update font when text format's letter spacing type is changed 2017-12-22 05:37:55 +00:00
qtextlayout Fix potential crash when showing line/paragraph separators 2018-08-09 12:46:22 +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 Updated license headers 2016-01-21 18:55:18 +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 Updated license headers 2016-01-21 18:55:18 +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