Commit a298216b authored by Samuel Rødal's avatar Samuel Rødal Committed by The Qt Project
Browse files

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: default avatarThiago Macieira <thiago.macieira@intel.com>
Reviewed-by: default avatarGunnar Sletta <gunnar.sletta@digia.com>
parent 3d42f6fe
Showing with 9 additions and 4 deletions
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment