diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2010-08-05 09:21:03 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2010-08-05 12:10:56 (GMT) |
commit | 05bb249c2ad3ee15eb205a806f8546c105683096 (patch) | |
tree | 77b111450fa1325caaea0cb17425050032d769a7 /tools/qdoc3/tokenizer.h | |
parent | 15505360dc8e8b8f1343bba6fd3e5a9c95718d30 (diff) | |
download | Qt-05bb249c2ad3ee15eb205a806f8546c105683096.zip Qt-05bb249c2ad3ee15eb205a806f8546c105683096.tar.gz Qt-05bb249c2ad3ee15eb205a806f8546c105683096.tar.bz2 |
Fix QTextEngine overflow caused by extremely long text
Internally, QTextEngine use int to calculate most of the layout data
required. If a string longer than 2^24 is passed into either QTextEngine
or classes using it (QStackTextEngine, QPainter, QFontMetrics, etc.),
overflow will happen because the memory size required to allocate for
layout will become too large for int to handle. This patch will prevent
these cases and add error handling mechanism for relevant code.
Task-number: QT-3658
Reviewed-by: Eskil Abrahamsen Blomfeldt
Diffstat (limited to 'tools/qdoc3/tokenizer.h')
0 files changed, 0 insertions, 0 deletions