summaryrefslogtreecommitdiff
path: root/x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c
diff options
context:
space:
mode:
Diffstat (limited to 'x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c')
-rw-r--r--x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c39
1 files changed, 39 insertions, 0 deletions
diff --git a/x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c b/x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c
new file mode 100644
index 00000000000..c2f9573f4e5
--- /dev/null
+++ b/x11/modular-xorg-server112/patches/patch-randr_rrsdispatch.c
@@ -0,0 +1,39 @@
+$NetBSD: patch-randr_rrsdispatch.c,v 1.1 2015/04/03 09:46:18 tnn Exp $
+
+X.Org Security Advisory: Dec. 9, 2014
+Protocol handling issues in X Window System servers
+
+--- randr/rrsdispatch.c.orig 2012-05-17 17:09:05.000000000 +0000
++++ randr/rrsdispatch.c
+@@ -27,6 +27,7 @@ SProcRRQueryVersion(ClientPtr client)
+ {
+ REQUEST(xRRQueryVersionReq);
+
++ REQUEST_SIZE_MATCH(xRRQueryVersionReq);
+ swaps(&stuff->length);
+ swapl(&stuff->majorVersion);
+ swapl(&stuff->minorVersion);
+@@ -38,6 +39,7 @@ SProcRRGetScreenInfo(ClientPtr client)
+ {
+ REQUEST(xRRGetScreenInfoReq);
+
++ REQUEST_SIZE_MATCH(xRRGetScreenInfoReq);
+ swaps(&stuff->length);
+ swapl(&stuff->window);
+ return (*ProcRandrVector[stuff->randrReqType]) (client);
+@@ -69,6 +71,7 @@ SProcRRSelectInput(ClientPtr client)
+ {
+ REQUEST(xRRSelectInputReq);
+
++ REQUEST_SIZE_MATCH(xRRSelectInputReq);
+ swaps(&stuff->length);
+ swapl(&stuff->window);
+ swaps(&stuff->enable);
+@@ -152,6 +155,7 @@ SProcRRConfigureOutputProperty(ClientPtr
+ {
+ REQUEST(xRRConfigureOutputPropertyReq);
+
++ REQUEST_AT_LEAST_SIZE(xRRConfigureOutputPropertyReq);
+ swaps(&stuff->length);
+ swapl(&stuff->output);
+ swapl(&stuff->property);