summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2014-01-26 20:02:20 -0800
committerJulien Cristau <jcristau@debian.org>2014-12-09 17:50:13 +0100
commit4f30f4dd47df6dfd363a15a12fd30b727c0bbaa8 (patch)
tree6bc8bd80c136541260d661424a12a51b8f432052
parent18c7f1e49b16ce9264e77f9c244495ceb24e3f5a (diff)
xfixes: unvalidated length in SProcXFixesSelectSelectionInput [CVE-2014-8102]
Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net> (cherry picked from commit a0ece23a8bd300c8be10812d368dc8058c97c63e) Signed-off-by: Julien Cristau <jcristau@debian.org>
-rw-r--r--xfixes/select.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/xfixes/select.c b/xfixes/select.c
index c088ed3de..e964d588c 100644
--- a/xfixes/select.c
+++ b/xfixes/select.c
@@ -201,6 +201,7 @@ SProcXFixesSelectSelectionInput(ClientPtr client)
{
REQUEST(xXFixesSelectSelectionInputReq);
+ REQUEST_SIZE_MATCH(xXFixesSelectSelectionInputReq);
swaps(&stuff->length);
swapl(&stuff->window);
swapl(&stuff->selection);