Merge remote-tracking branch 'alanc/master'

This commit is contained in:
Keith Packard
2014-12-09 11:47:11 -08:00
56 changed files with 898 additions and 315 deletions

View File

@@ -270,6 +270,9 @@ ProcDRI2GetBuffers(ClientPtr client)
unsigned int *attachments;
REQUEST_FIXED_SIZE(xDRI2GetBuffersReq, stuff->count * 4);
if (stuff->count > (INT_MAX / 4))
return BadLength;
if (!validDrawable(client, stuff->drawable, DixReadAccess | DixWriteAccess,
&pDrawable, &status))
return status;