mirror of
https://gitlab.freedesktop.org/xorg/xserver.git
synced 2026-01-09 04:10:15 +01:00
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.
(cherry picked from commit 4f2f3233c8)
This commit is contained in:
parent
ec1c2fc092
commit
fe13ebbe69
1 changed files with 1 additions and 1 deletions
|
|
@ -868,7 +868,7 @@ ProcRRSetCrtcGamma (ClientPtr client)
|
|||
unsigned long len;
|
||||
CARD16 *red, *green, *blue;
|
||||
|
||||
REQUEST_SIZE_MATCH(xRRSetCrtcGammaReq);
|
||||
REQUEST_AT_LEAST_SIZE(xRRSetCrtcGammaReq);
|
||||
crtc = LookupCrtc (client, stuff->crtc, SecurityWriteAccess);
|
||||
if (!crtc)
|
||||
return RRErrorBase + BadRRCrtc;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue