summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qlayoutitem.cpp
diff options
context:
space:
mode:
authorSamuel Rødal <samuel.rodal@digia.com>2013-04-26 08:36:04 (GMT)
committerThe Qt Project <gerrit-noreply@qt-project.org>2013-05-15 12:34:26 (GMT)
commite7ac2a9bba2925149bac6dda0f391275997abada (patch)
tree72aa52ad7e11d57695fa833492ecdb98033552e9 /src/gui/kernel/qlayoutitem.cpp
parent3274f114dbda0dae948a74979c7a8503b54cd292 (diff)
downloadQt-e7ac2a9bba2925149bac6dda0f391275997abada.zip
Qt-e7ac2a9bba2925149bac6dda0f391275997abada.tar.gz
Qt-e7ac2a9bba2925149bac6dda0f391275997abada.tar.bz2
Prevent crash due to giving QWidget::update() a large rect.
We can simply clip the update rect 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: I23bd0149fbe8d1a007a60b228e6bddb45dc4fc32 Reviewed-by: Thiago Macieira <thiago.macieira@intel.com> Reviewed-by: Gunnar Sletta <gunnar.sletta@digia.com> (cherry picked from commit a298216bb4383dbe96688dfb80da0cd875766de0)
Diffstat (limited to 'src/gui/kernel/qlayoutitem.cpp')
0 files changed, 0 insertions, 0 deletions