Render: Fix request size verification
RenderSetPictureClipRectangles and the Xinerama version of
RenderChangePicture were using the wrong structure types for request
size verification.
Signed-off-by: Robert Morell <rmorell@nvidia.com>
Reviewed-by: Aaron Plattner <aplattner@nvidia.com>
Signed-off-by: Keith Packard <keithp@keithp.com>
(cherry picked from commit 8d6b183833
)
This commit is contained in:
parent
6f53399492
commit
5d34e78c81
|
@ -656,7 +656,7 @@ ProcRenderSetPictureClipRectangles (ClientPtr client)
|
|||
if (!pPicture->pDrawable)
|
||||
return BadDrawable;
|
||||
|
||||
nr = (client->req_len << 2) - sizeof(xRenderChangePictureReq);
|
||||
nr = (client->req_len << 2) - sizeof(xRenderSetPictureClipRectanglesReq);
|
||||
if (nr & 4)
|
||||
return BadLength;
|
||||
nr >>= 3;
|
||||
|
@ -2728,7 +2728,7 @@ PanoramiXRenderChangePicture (ClientPtr client)
|
|||
int result = Success, j;
|
||||
REQUEST(xRenderChangePictureReq);
|
||||
|
||||
REQUEST_AT_LEAST_SIZE(xChangeWindowAttributesReq);
|
||||
REQUEST_AT_LEAST_SIZE(xRenderChangePictureReq);
|
||||
|
||||
VERIFY_XIN_PICTURE(pict, stuff->picture, client, DixWriteAccess,
|
||||
RenderErrBase + BadPicture);
|
||||
|
|
Loading…
Reference in New Issue