ODROID-U3 xorg-server debian package fork :
[deb_xorg-server.git] / debian / patches / CVE-2014-8xxx / 0010-Xv-unvalidated-lengths-in-XVideo-extension-swapped-p.patch
index 0242368ed01d56cebd83370aa47c96d450225c65..f6fb827646cdcd903bc3dcf1d89821f6e0fa4f9c 100644 (file)
@@ -10,11 +10,9 @@ Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
  Xext/xvdisp.c |   20 ++++++++++++++++++++
  1 file changed, 20 insertions(+)
 
-Index: xorg-server-1.16.0/Xext/xvdisp.c
-===================================================================
---- xorg-server-1.16.0.orig/Xext/xvdisp.c      2014-12-04 11:15:10.726714736 -0500
-+++ xorg-server-1.16.0/Xext/xvdisp.c   2014-12-04 11:15:10.722714693 -0500
-@@ -1207,6 +1207,7 @@
+--- a/Xext/xvdisp.c
++++ b/Xext/xvdisp.c
+@@ -1207,6 +1207,7 @@ static int
  SProcXvQueryExtension(ClientPtr client)
  {
      REQUEST(xvQueryExtensionReq);
@@ -22,7 +20,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      return XvProcVector[xv_QueryExtension] (client);
  }
-@@ -1215,6 +1216,7 @@
+@@ -1215,6 +1216,7 @@ static int
  SProcXvQueryAdaptors(ClientPtr client)
  {
      REQUEST(xvQueryAdaptorsReq);
@@ -30,7 +28,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->window);
      return XvProcVector[xv_QueryAdaptors] (client);
-@@ -1224,6 +1226,7 @@
+@@ -1224,6 +1226,7 @@ static int
  SProcXvQueryEncodings(ClientPtr client)
  {
      REQUEST(xvQueryEncodingsReq);
@@ -38,7 +36,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      return XvProcVector[xv_QueryEncodings] (client);
-@@ -1233,6 +1236,7 @@
+@@ -1233,6 +1236,7 @@ static int
  SProcXvGrabPort(ClientPtr client)
  {
      REQUEST(xvGrabPortReq);
@@ -46,7 +44,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->time);
-@@ -1243,6 +1247,7 @@
+@@ -1243,6 +1247,7 @@ static int
  SProcXvUngrabPort(ClientPtr client)
  {
      REQUEST(xvUngrabPortReq);
@@ -54,7 +52,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->time);
-@@ -1253,6 +1258,7 @@
+@@ -1253,6 +1258,7 @@ static int
  SProcXvPutVideo(ClientPtr client)
  {
      REQUEST(xvPutVideoReq);
@@ -62,7 +60,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1272,6 +1278,7 @@
+@@ -1272,6 +1278,7 @@ static int
  SProcXvPutStill(ClientPtr client)
  {
      REQUEST(xvPutStillReq);
@@ -70,7 +68,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1291,6 +1298,7 @@
+@@ -1291,6 +1298,7 @@ static int
  SProcXvGetVideo(ClientPtr client)
  {
      REQUEST(xvGetVideoReq);
@@ -78,7 +76,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1310,6 +1318,7 @@
+@@ -1310,6 +1318,7 @@ static int
  SProcXvGetStill(ClientPtr client)
  {
      REQUEST(xvGetStillReq);
@@ -86,7 +84,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1329,6 +1338,7 @@
+@@ -1329,6 +1338,7 @@ static int
  SProcXvPutImage(ClientPtr client)
  {
      REQUEST(xvPutImageReq);
@@ -94,7 +92,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1352,6 +1362,7 @@
+@@ -1352,6 +1362,7 @@ static int
  SProcXvShmPutImage(ClientPtr client)
  {
      REQUEST(xvShmPutImageReq);
@@ -102,7 +100,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1379,6 +1390,7 @@
+@@ -1379,6 +1390,7 @@ static int
  SProcXvSelectVideoNotify(ClientPtr client)
  {
      REQUEST(xvSelectVideoNotifyReq);
@@ -110,7 +108,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->drawable);
      return XvProcVector[xv_SelectVideoNotify] (client);
-@@ -1388,6 +1400,7 @@
+@@ -1388,6 +1400,7 @@ static int
  SProcXvSelectPortNotify(ClientPtr client)
  {
      REQUEST(xvSelectPortNotifyReq);
@@ -118,7 +116,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      return XvProcVector[xv_SelectPortNotify] (client);
-@@ -1397,6 +1410,7 @@
+@@ -1397,6 +1410,7 @@ static int
  SProcXvStopVideo(ClientPtr client)
  {
      REQUEST(xvStopVideoReq);
@@ -126,7 +124,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->drawable);
-@@ -1407,6 +1421,7 @@
+@@ -1407,6 +1421,7 @@ static int
  SProcXvSetPortAttribute(ClientPtr client)
  {
      REQUEST(xvSetPortAttributeReq);
@@ -134,7 +132,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->attribute);
-@@ -1418,6 +1433,7 @@
+@@ -1418,6 +1433,7 @@ static int
  SProcXvGetPortAttribute(ClientPtr client)
  {
      REQUEST(xvGetPortAttributeReq);
@@ -142,7 +140,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->attribute);
-@@ -1428,6 +1444,7 @@
+@@ -1428,6 +1444,7 @@ static int
  SProcXvQueryBestSize(ClientPtr client)
  {
      REQUEST(xvQueryBestSizeReq);
@@ -150,7 +148,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swaps(&stuff->vid_w);
-@@ -1441,6 +1458,7 @@
+@@ -1441,6 +1458,7 @@ static int
  SProcXvQueryPortAttributes(ClientPtr client)
  {
      REQUEST(xvQueryPortAttributesReq);
@@ -158,7 +156,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      return XvProcVector[xv_QueryPortAttributes] (client);
-@@ -1450,6 +1468,7 @@
+@@ -1450,6 +1468,7 @@ static int
  SProcXvQueryImageAttributes(ClientPtr client)
  {
      REQUEST(xvQueryImageAttributesReq);
@@ -166,7 +164,7 @@ Index: xorg-server-1.16.0/Xext/xvdisp.c
      swaps(&stuff->length);
      swapl(&stuff->port);
      swapl(&stuff->id);
-@@ -1462,6 +1481,7 @@
+@@ -1462,6 +1481,7 @@ static int
  SProcXvListImageFormats(ClientPtr client)
  {
      REQUEST(xvListImageFormatsReq);