qt5base-lts/tests/auto/gui
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
..
image add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
itemmodels Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
kernel add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
math3d Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
painting add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
qopengl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
text Fix possible crash in QTextDocument 2013-01-03 16:15:37 +01:00
util Fix QRegExpValidator::validate docs about the pos parameter 2012-10-22 22:42:26 +02:00
gui.pro Move QStandardItem/QStandardItemModel to QtGui 2012-06-29 22:42:19 +02:00