summaryrefslogtreecommitdiff
path: root/randr
diff options
context:
space:
mode:
authorRobert Morell <rmorell@nvidia.com>2014-04-18 18:29:43 -0700
committerKeith Packard <keithp@keithp.com>2014-04-21 11:44:31 -0700
commited4ee7c34a7fbb58a449647fb8d968618c499a61 (patch)
tree2b9400fb7d7dff0eadc4699def796d94469f6905 /randr
parent668321e7e5acb41c0c7b299f57165e86dc74d7ed (diff)
randr: Fix size checks for SetProvider* reqs
Both xRRSetProviderOutputSourceReq and xRRSetProviderOffloadSinkReq are fixed-size requests, so the length on the wire should match exactly. Signed-off-by: Robert Morell <rmorell@nvidia.com> Reviewed-by: Alan Coopersmith <alan.coopersmith@oracle.com> Signed-off-by: Keith Packard <keithp@keithp.com>
Diffstat (limited to 'randr')
-rw-r--r--randr/rrprovider.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/randr/rrprovider.c b/randr/rrprovider.c
index 3ce7d75b0..4507ba894 100644
--- a/randr/rrprovider.c
+++ b/randr/rrprovider.c
@@ -285,7 +285,7 @@ ProcRRSetProviderOutputSource(ClientPtr client)
RRProviderPtr provider, source_provider = NULL;
ScreenPtr pScreen;
- REQUEST_AT_LEAST_SIZE(xRRSetProviderOutputSourceReq);
+ REQUEST_SIZE_MATCH(xRRSetProviderOutputSourceReq);
VERIFY_RR_PROVIDER(stuff->provider, provider, DixReadAccess);
@@ -320,7 +320,7 @@ ProcRRSetProviderOffloadSink(ClientPtr client)
RRProviderPtr provider, sink_provider = NULL;
ScreenPtr pScreen;
- REQUEST_AT_LEAST_SIZE(xRRSetProviderOffloadSinkReq);
+ REQUEST_SIZE_MATCH(xRRSetProviderOffloadSinkReq);
VERIFY_RR_PROVIDER(stuff->provider, provider, DixReadAccess);
if (!(provider->capabilities & RR_Capability_SourceOffload))