[X2Go-Commits] [nx-libs] 04/11: nx-X11: Backport: randr: check for virtual size limits before set crtc

git-admin at x2go.org git-admin at x2go.org
Sat Jul 4 02:23:33 CEST 2015


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch 3.5.0.x
in repository nx-libs.

commit 44b913275b60fa4e95d76c2918426d7f7d70752a
Author: Tiago Vignatti <tiago.vignatti at nokia.com>
Date:   Fri Jul 3 23:40:57 2015 +0200

    nx-X11: Backport: randr: check for virtual size limits before set crtc
    
    Return a error if the screen is configured to an invalid size.
    
    Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
    Reviewed-by: Adam Jackson <ajax at redhat.com>
    Reviewed-by: Daniel Stone <daniel at fooishbar.org>
    Signed-off-by: Keith Packard <keithp at keithp.com>
    
    Backported from Arctica GH 3.6.x branch.
    
    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
---
 debian/changelog                                   |    6 +++
 ...r-check-for-virtual-size-limits-befo.full.patch |   41 ++++++++++++++++++++
 debian/patches/series                              |    1 +
 3 files changed, 48 insertions(+)

diff --git a/debian/changelog b/debian/changelog
index e410722..3802f15 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -281,6 +281,12 @@ nx-libs (2:3.5.0.32-0x2go1) UNRELEASED; urgency=low
     v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
     Adds:
     - 1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
+  * nx-X11: randr: check for virtual size limits before set crtc
+    Backported from Arctica GH 3.6.x branch.
+    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
+    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
+    Adds:
+    - 1253_nx-X11_randr-check-for-virtual-size-limits-befo.full.patch
 
  -- X2Go Release Manager <git-admin at x2go.org>  Tue, 17 Mar 2015 19:19:32 +0100
 
diff --git a/debian/patches/1253_nx-X11_randr-check-for-virtual-size-limits-befo.full.patch b/debian/patches/1253_nx-X11_randr-check-for-virtual-size-limits-befo.full.patch
new file mode 100644
index 0000000..d89432c
--- /dev/null
+++ b/debian/patches/1253_nx-X11_randr-check-for-virtual-size-limits-befo.full.patch
@@ -0,0 +1,41 @@
+commit da678db0ef57c45f1bbe1c0e8f14da70746ed2cd
+Author: Tiago Vignatti <tiago.vignatti at nokia.com>
+Date:   Fri Dec 17 16:09:35 2010 +0200
+
+    Backport: randr: check for virtual size limits before set crtc
+
+    Return a error if the screen is configured to an invalid size.
+
+    Signed-off-by: Tiago Vignatti <tiago.vignatti at nokia.com>
+    Reviewed-by: Adam Jackson <ajax at redhat.com>
+    Reviewed-by: Daniel Stone <daniel at fooishbar.org>
+    Signed-off-by: Keith Packard <keithp at keithp.com>
+
+    Backported from Arctica GH 3.6.x branch.
+
+    v2: backport to nx-libs 3.6.x (Ulrich Sibiller)
+    v3: backport to nx-libs 3.5.0.x (Mihai Moldovan)
+
+diff --git a/nx-X11/programs/Xserver/randr/rrscreen.c b/nx-X11/programs/Xserver/randr/rrscreen.c
+index 9b3935e..9bea97b 100644
+--- a/nx-X11/programs/Xserver/randr/rrscreen.c
++++ b/nx-X11/programs/Xserver/randr/rrscreen.c
+@@ -938,6 +938,18 @@ ProcRRSetScreenConfig (ClientPtr client)
+ 	width = mode->mode.height;
+ 	height = mode->mode.width;
+     }
++
++    if (width < pScrPriv->minWidth || pScrPriv->maxWidth < width) {
++	client->errorValue = width;
++	free(pData);
++	return BadValue;
++    }
++    if (height < pScrPriv->minHeight || pScrPriv->maxHeight < height) {
++	client->errorValue = height;
++	free(pData);
++	return BadValue;
++    }
++
+     if (width != pScreen->width || height != pScreen->height)
+     {
+ 	int	c;
diff --git a/debian/patches/series b/debian/patches/series
index d24ed1f..61a6382 100644
--- a/debian/patches/series
+++ b/debian/patches/series
@@ -139,6 +139,7 @@
 1250_nx-X11_Bug-51375-Xorg-doesn_t-set-status-for-RR.full.patch
 1251_nx-X11_Drop-a-reference-to-user-mode-after-crea.full.patch
 1252_nx-X11_Free-randr-crtc-and-output-pointer-array.full.patch
+1253_nx-X11_randr-check-for-virtual-size-limits-befo.full.patch
 9900-dxpc-license-history.full+lite.patch
 0016_nx-X11_install-location.debian.patch
 0102_xserver-xext_set-securitypolicy-path.debian.patch

--
Alioth's /srv/git/code.x2go.org/nx-libs.git//..//_hooks_/post-receive-email on /srv/git/code.x2go.org/nx-libs.git


More information about the x2go-commits mailing list