From 935a3f2ebb026717b04fd6b2e2c7d0445e3f2f0f Mon Sep 17 00:00:00 2001 From: emersion Date: Fri, 13 Jul 2018 19:27:04 +0100 Subject: [PATCH] screencopy: fix segfault when client supplies invalid buffer --- types/wlr_screencopy_v1.c | 1 + 1 file changed, 1 insertion(+) diff --git a/types/wlr_screencopy_v1.c b/types/wlr_screencopy_v1.c index f994d972..bd3dfe9a 100644 --- a/types/wlr_screencopy_v1.c +++ b/types/wlr_screencopy_v1.c @@ -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;