mirror of
https://github.com/brl/mutter.git
synced 2024-12-26 04:42:14 +00:00
window: fix invalid read in computing the input shape
If we are reported only one rectangle in the input shape, we should not try to read more. https://bugzilla.gnome.org/show_bug.cgi?id=724257
This commit is contained in:
parent
fb6a7cda70
commit
e053f7f2f4
@ -7830,9 +7830,9 @@ meta_window_update_input_region_x11 (MetaWindow *window)
|
|||||||
if (n_rects > 1 ||
|
if (n_rects > 1 ||
|
||||||
(n_rects == 1 &&
|
(n_rects == 1 &&
|
||||||
(rects[0].x != x_bounding ||
|
(rects[0].x != x_bounding ||
|
||||||
rects[1].y != y_bounding ||
|
rects[0].y != y_bounding ||
|
||||||
rects[2].width != w_bounding ||
|
rects[0].width != w_bounding ||
|
||||||
rects[3].height != h_bounding)))
|
rects[0].height != h_bounding)))
|
||||||
region = region_create_from_x_rectangles (rects, n_rects);
|
region = region_create_from_x_rectangles (rects, n_rects);
|
||||||
|
|
||||||
XFree (rects);
|
XFree (rects);
|
||||||
|
Loading…
Reference in New Issue
Block a user