[WIP] Check VNC buffer allocation.

This commit is contained in:
Nick Couchman 2020-04-16 13:42:25 -04:00
parent ab38b6c912
commit e011cf38eb

View File

@ -70,6 +70,8 @@ void guac_vnc_update(rfbClient* client, int x, int y, int w, int h) {
/* Init Cairo buffer */
stride = cairo_format_stride_for_width(CAIRO_FORMAT_RGB24, w);
buffer = malloc(h*stride);
if (buffer == NULL)
return;
buffer_row_current = buffer;
bpp = client->format.bitsPerPixel/8;