qt5base-lts/tests/auto/gui
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
..
image Fix conversion from transparent indexed8 to RGB32 2018-08-03 10:42:38 +00:00
itemmodels Make sure we can build with -no-feature-draganddrop 2018-05-29 18:31:35 +00:00
kernel Android: Blacklist some cases in tst_qwindow 2018-06-28 07:33:15 +00:00
math3d Use qRadiansToDegrees() and qDegreesToRadians() more widely 2017-07-05 10:15:34 +00:00
painting Android: QEXPECT_FAIL a failing condition 2018-06-30 19:32:52 +00:00
qopengl Merge remote-tracking branch 'origin/5.10' into dev 2017-10-24 13:40:55 +02:00
qopenglconfig Fix tst_QOpenGlConfig for platforms with builtin test data 2017-06-19 07:05:59 +00:00
qvulkan Merge remote-tracking branch 'origin/5.10' into dev 2017-10-17 10:34:24 +02:00
text Fix potential crash when showing line/paragraph separators 2018-08-09 12:46:22 +00:00
util Enable BuiltIn input in the shader graph builder 2018-04-10 23:49:37 +00:00
gui.pro Basic Vulkan enablers 2017-03-17 16:12:03 +00:00