After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 707081 - shaped-texture: Prevent no clip region from being used as an empty clip region
shaped-texture: Prevent no clip region from being used as an empty clip region
Status: RESOLVED FIXED
Product: mutter
Classification: Core
Component: general
unspecified
Other All
: Normal normal
: ---
Assigned To: mutter-maint
mutter-maint
Depends on:
Blocks:
 
 
Reported: 2013-08-29 19:26 UTC by Jasper St. Pierre (not reading bugmail)
Modified: 2013-08-29 20:18 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
shaped-texture: Prevent no clip region from being used as an empty clip region (1.38 KB, patch)
2013-08-29 19:26 UTC, Jasper St. Pierre (not reading bugmail)
committed Details | Review

Description Jasper St. Pierre (not reading bugmail) 2013-08-29 19:26:12 UTC
Spotted by Giovanni.
Comment 1 Jasper St. Pierre (not reading bugmail) 2013-08-29 19:26:15 UTC
Created attachment 253546 [details] [review]
shaped-texture: Prevent no clip region from being used as an empty clip region

cairo_region_copy, while valid to call on a NULL pointer, gives us an empty
region instead of an infinitely big region, so the interesction won't give
us what we want. Just check for this case explicitly.
Comment 2 drago01 2013-08-29 19:47:58 UTC
Review of attachment 253546 [details] [review]:

OK.
Comment 3 Jasper St. Pierre (not reading bugmail) 2013-08-29 20:18:32 UTC
Attachment 253546 [details] pushed as 23e9947 - shaped-texture: Prevent no clip region from being used as an empty clip region