qt5base-lts/tests/auto
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
..
cmake Generate instances of types in the CMake tests. 2012-10-31 07:16:03 +01:00
compilerwarnings/data Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
concurrent Fix for leak in QFuture 2012-11-01 16:09:29 +01:00
corelib Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
dbus tst_QDBusXmlParser: more reliable solution for setting the seed 2012-12-20 21:16:53 +01:00
gui Fix possible crash in QTextDocument 2013-01-03 16:15:37 +01:00
guiapplauncher Update the documentation after moving examples. 2011-07-05 21:19:08 +02:00
network Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
opengl add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
other add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
printsupport Only use the user set page margins for custom paper 2012-10-30 12:53:46 +01:00
shared Auto tests: add PlatformClipboard::isAvailable() 2012-09-27 06:07:13 +02:00
sql Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
testlib Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
tools add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
widgets Remove metatype registration of built-in types. 2013-01-03 16:15:37 +01:00
xml remove obsolete DEPENDPATH assignments 2012-12-17 14:08:17 +01:00
auto.pro add and use qtHaveModule() function 2012-12-21 19:05:02 +01:00
network-settings.h Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00
qtest-config.h Auto tests: revise cursor dependant tests 2012-10-13 05:51:19 +02:00
test.pl Change copyrights from Nokia to Digia 2012-09-22 19:20:11 +02:00