qt6-bb10/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
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
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
qinputcontrol
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
qtextblock
qtextcursor
qtextdocument Android: QEXPECT_FAIL tst_QTextDocument::task240325 2018-07-04 14:32:23 +00:00
qtextdocumentfragment
qtextdocumentlayout
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
qtextobject
qtextodfwriter
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
qzip
text.pro