Fix the size expectations of xRRSetCrtcGamma.
It was using REQUEST_SIZE_MATCH (client request length must equal request size) rather than REQUEST_AT_LEAST_SIZE (client request length must be at least big enough for request size), and this request has data following the request structure.
This commit is contained in:
parent
8274ea6aa9
commit
4f2f3233c8
|
@ -870,7 +870,7 @@ ProcRRSetCrtcGamma (ClientPtr client)
|
||||||
unsigned long len;
|
unsigned long len;
|
||||||
CARD16 *red, *green, *blue;
|
CARD16 *red, *green, *blue;
|
||||||
|
|
||||||
REQUEST_SIZE_MATCH(xRRSetCrtcGammaReq);
|
REQUEST_AT_LEAST_SIZE(xRRSetCrtcGammaReq);
|
||||||
crtc = LookupCrtc (client, stuff->crtc, DixWriteAccess);
|
crtc = LookupCrtc (client, stuff->crtc, DixWriteAccess);
|
||||||
if (!crtc)
|
if (!crtc)
|
||||||
return RRErrorBase + BadRRCrtc;
|
return RRErrorBase + BadRRCrtc;
|
||||||
|
|
Loading…
Reference in New Issue