summaryrefslogtreecommitdiffstats
path: root/demos/interview
diff options
context:
space:
mode:
authorJiang Jiang <jiang.jiang@nokia.com>2010-08-05 09:21:03 (GMT)
committerJiang Jiang <jiang.jiang@nokia.com>2010-08-05 12:10:56 (GMT)
commit05bb249c2ad3ee15eb205a806f8546c105683096 (patch)
tree77b111450fa1325caaea0cb17425050032d769a7 /demos/interview
parent15505360dc8e8b8f1343bba6fd3e5a9c95718d30 (diff)
downloadQt-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 'demos/interview')
0 files changed, 0 insertions, 0 deletions