From fe13ebbe6960b5a23ed0dc0dd991fd5177dee483 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Fri, 2 Feb 2007 12:14:40 -0800 Subject: [PATCH] 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 4f2f3233c808fd86bf9f6c09937feda9e0b367fd) --- randr/rrcrtc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/randr/rrcrtc.c b/randr/rrcrtc.c index 1e0429071..2ae9040d1 100644 --- a/randr/rrcrtc.c +++ b/randr/rrcrtc.c @@ -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;