qt5base-lts/tests/auto/gui/text
Eskil Abrahamsen Blomfeldt 248ccb2889 Fix possible crash in QTextDocument
With trailing spaces in some cases, we would not get the
"no justification at end of paragraph" special case, and continue
in the code, getting the unexpected case where line_length becomes
< 0 which would lead to memory corruption because we were writing
outside our buffers. I added an assert to catch this type of bug
earlier, and I added the trailing spaces to the test for the end
of the paragraph.

The test case added is one example which would crash.

Task-number: QTBUG-27354
Change-Id: Id720a6fa55dbc709ce04dd5321e55687bf960d75
Reviewed-by: Lars Knoll <lars.knoll@digia.com>
2013-01-03 16:15:37 +01:00
..
qabstracttextdocumentlayout Mark QAbstractTextDocumentLayout test as insignificant 2012-12-14 06:37:41 +01:00
qcssparser Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfont add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qfontdatabase Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qfontmetrics QFontEngineMulti: Fix possible crash in stringToCMap() 2012-10-29 20:31:08 +01:00
qglyphrun Mark QGlyphRun and QStaticText tests as insignificant on Linux 2012-12-13 20:19:00 +01:00
qrawfont properly syncqt-ize harfbuzz headers 2012-12-04 13:57:55 +01:00
qstatictext Mark QGlyphRun and QStaticText tests as insignificant on Linux 2012-12-13 20:19:00 +01:00
qsyntaxhighlighter add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qtextblock Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextcursor Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextdocument Fix possible crash in QTextDocument 2013-01-03 16:15:37 +01:00
qtextdocumentfragment Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextdocumentlayout add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qtextformat Delete the QVariant ctors taking global Qt enum values. 2012-10-10 08:45:22 +02:00
qtextlayout properly syncqt-ize harfbuzz headers 2012-12-04 13:57:55 +01:00
qtextlist Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextobject add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qtextodfwriter Use the right properties when checking the frame's margins 2012-10-18 20:56:05 +02:00
qtextpiecetable Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtextscriptengine properly syncqt-ize harfbuzz headers 2012-12-04 13:57:55 +01:00
qtexttable add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qzip Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
text.pro Start running some disabled tests again on Mac OS. 2012-04-23 09:46:22 +02:00