diff options
author | Jiang Jiang <jiang.jiang@nokia.com> | 2010-12-08 09:46:16 (GMT) |
---|---|---|
committer | Jiang Jiang <jiang.jiang@nokia.com> | 2010-12-08 10:03:53 (GMT) |
commit | d5383440d1a3e0d96cfcfa754aaefe9d30f2e022 (patch) | |
tree | 751ce32335e9897f6711ecb67e92e1b2cfacacf1 /src/phonon | |
parent | 8e01304939a19b65267887b220aa9814fc56b350 (diff) | |
download | Qt-d5383440d1a3e0d96cfcfa754aaefe9d30f2e022.zip Qt-d5383440d1a3e0d96cfcfa754aaefe9d30f2e022.tar.gz Qt-d5383440d1a3e0d96cfcfa754aaefe9d30f2e022.tar.bz2 |
Fix QWingedEdge memory usage issue
QWingedEdge should reserve the amount of segments/edges/vertices in
relative to the element count instead of length of the QPainterPath
passed in. This problem is especially severe when QTextLayout using
it to calculate the region for full line selection highlighting,
because the region used QFIXED_MAX as right most coordinate, it will
cost more than 2 GB of memory allocated just for it (recorded by
valgrind on Mac OS X), and cause crash in systems short of memory.
Task-number: QTBUG-15823
Reviewed-by: Samuel Rødal
Diffstat (limited to 'src/phonon')
0 files changed, 0 insertions, 0 deletions