diff options
author | Drew DeVault <sir@cmpwn.com> | 2018-07-13 12:49:12 -0700 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 12:49:12 -0700 |
commit | 4984ea49eeaa292d66be9e535d93a4d8185f3e18 (patch) | |
tree | 39f9f76bc960518988093c6c6684a77be21a2063 | |
parent | b902c2bd7c012363aad62d414622b2a1b81d5cb5 (diff) | |
parent | 935a3f2ebb026717b04fd6b2e2c7d0445e3f2f0f (diff) |
Merge pull request #1132 from emersion/fix-screencopy-frame-error
screencopy: fix segfault when client supplies invalid buffer
-rw-r--r-- | types/wlr_screencopy_v1.c | 1 |
1 files changed, 1 insertions, 0 deletions
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; |