diff options
author | Samuel Rødal <samuel.rodal@digia.com> | 2013-04-26 10:36:04 +0200 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-04-29 08:09:24 +0200 |
commit | a298216bb4383dbe96688dfb80da0cd875766de0 (patch) | |
tree | 9560e63f2d32e875ee234a3424ef17b865634ebf /src/plugins/platforms/cocoa | |
parent | 3d42f6fed220cd0cd24924eb55db4b2751eed74c (diff) |
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>
Diffstat (limited to 'src/plugins/platforms/cocoa')
0 files changed, 0 insertions, 0 deletions