summaryrefslogtreecommitdiff
path: root/tests/auto
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2013-04-26 10:36:04 +0200
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-15 14:34:29 +0200
commit0daeee468ccc76dfb957892050b4c11d4807e2d3 (patch)
tree8c9f549c64a65df21616bf3e5bf7df4c658fcaa5 /tests/auto
parente7ac2a9bba2925149bac6dda0f391275997abada (diff)
downloadqt4-tools-0daeee468ccc76dfb957892050b4c11d4807e2d3.tar.gz
Prevent crash due to giving QWidget::update() a large region.
Similar to what change a298216bb4383dbe96 does for update(QRect) we clip the update region against the widget's rect and return if it's empty. Otherwise we risk ending up with update rects that are larger than INT_MAX due to multiple update rects being merged. Task-number: QTBUG-30876 Change-Id: Idf695b1fdca50449a1e5ddf37500653de290590c Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> (cherry picked from commit 69ee30260a667b2b977a0d4b52abf6537521cce8)
Diffstat (limited to 'tests/auto')
0 files changed, 0 insertions, 0 deletions