diff options
author | Tudor Brindus <me@tbrindus.ca> | 2020-05-26 10:05:33 -0400 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2020-05-26 16:24:52 +0200 |
commit | d71fed95da5af5a489d2ea68b87a306ddc4d238d (patch) | |
tree | 12f9433510ad1827fe86d77a672b748238057766 /include/sway | |
parent | input/cursor: fix heap-buffer overflow in constraint set_region (diff) | |
download | sway-d71fed95da5af5a489d2ea68b87a306ddc4d238d.tar.gz sway-d71fed95da5af5a489d2ea68b87a306ddc4d238d.tar.zst sway-d71fed95da5af5a489d2ea68b87a306ddc4d238d.zip |
input/cursor: keep reference to cursor in constraint
set_region accepts a NULL *data, so we can't use it to reference the
constraint and find the cursor through its seat.
Fixes #5386.
Diffstat (limited to 'include/sway')
-rw-r--r-- | include/sway/input/seat.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/input/seat.h b/include/sway/input/seat.h index e313a206..37de1223 100644 --- a/include/sway/input/seat.h +++ b/include/sway/input/seat.h | |||
@@ -111,6 +111,7 @@ struct sway_seat { | |||
111 | }; | 111 | }; |
112 | 112 | ||
113 | struct sway_pointer_constraint { | 113 | struct sway_pointer_constraint { |
114 | struct sway_cursor *cursor; | ||
114 | struct wlr_pointer_constraint_v1 *constraint; | 115 | struct wlr_pointer_constraint_v1 *constraint; |
115 | 116 | ||
116 | struct wl_listener set_region; | 117 | struct wl_listener set_region; |