diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-06-17 08:43:32 (GMT) |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@nokia.com> | 2010-06-17 09:08:40 (GMT) |
commit | 8af2f7b5085ee56d289584bddbccc8dead04b9d1 (patch) | |
tree | ec946fbb9084d05661ee0887f52ebecde449652f /tools/qtestlib | |
parent | a01ce81cc2d03c64f326af8f5a7f622dc197af7e (diff) | |
download | Qt-8af2f7b5085ee56d289584bddbccc8dead04b9d1.zip Qt-8af2f7b5085ee56d289584bddbccc8dead04b9d1.tar.gz Qt-8af2f7b5085ee56d289584bddbccc8dead04b9d1.tar.bz2 |
Fix possible crash in QTextLayout for glyphless items
Change e1915815bc5ef86b3844608bba46769da5173363 moved part of the
right bearing check out of the "non-whitespace-or-object" block of the
layout, which could potentially cause crashes for layouts that contained
items that were line separators or tabs etc. because we would access
the logical clusters array based on the position of e.g. the tab even
though it didn't have an entry. This could potentially give us an
arbitrary index which might cause an out of bounds when accessing the
glyphs array.
Task-number: QTBUG-11427
Reviewed-by: Simon Hausmann
Diffstat (limited to 'tools/qtestlib')
0 files changed, 0 insertions, 0 deletions