mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-16 06:59:44 -05:00
screencopy: fix segfault when client supplies invalid buffer
This commit is contained in:
parent
3ae423b0e3
commit
935a3f2ebb
1 changed files with 1 additions and 0 deletions
|
|
@ -202,6 +202,7 @@ static void capture_output(struct wl_client *client,
|
|||
wl_list_insert(&manager->frames, &frame->link);
|
||||
|
||||
wl_list_init(&frame->output_swap_buffers.link);
|
||||
wl_list_init(&frame->buffer_destroy.link);
|
||||
|
||||
frame->format = WL_SHM_FORMAT_XRGB8888;
|
||||
frame->box = buffer_box;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue