Merge pull request #1132 from emersion/fix-screencopy-frame-error

screencopy: fix segfault when client supplies invalid buffer
master
Drew DeVault 7 years ago committed by GitHub
commit 4984ea49ee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save