diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@digia.com> | 2012-12-11 14:07:16 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-01-03 16:15:37 +0100 |
commit | 248ccb2889aec76cb99c25998534c97b48b98c4a (patch) | |
tree | 245b07bbef790f3f87fdcd7406dfe1efb5f76f59 /doc | |
parent | 4319f698c893683c6a031e41272b85cfb25ac931 (diff) |
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>
Diffstat (limited to 'doc')
0 files changed, 0 insertions, 0 deletions