summaryrefslogtreecommitdiffstats
path: root/package/rdesktop/rdesktop-01-8bit-colors.patch
diff options
context:
space:
mode:
authorGustavo Zacarias <gustavo@zacarias.com.ar>2014-05-23 09:14:04 -0300
committerPeter Korsgaard <peter@korsgaard.com>2014-05-23 14:46:09 +0200
commitb19399cc1de0d27543ed97efad5dd9adfd04f7c0 (patch)
treee89017adfd89ea3e842524a9b70ab6696bbc6317 /package/rdesktop/rdesktop-01-8bit-colors.patch
parent7467fbead7cf87ee96449014fd37720c64bc3966 (diff)
downloadbuildroot-b19399cc1de0d27543ed97efad5dd9adfd04f7c0.tar.gz
buildroot-b19399cc1de0d27543ed97efad5dd9adfd04f7c0.zip
rdesktop: security bump to version 1.8.2
Long overdue, fixes CVE-2008-1801, CVE-2008-1802, CVE-2008-1803 and CVE-2011-1595. Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/rdesktop/rdesktop-01-8bit-colors.patch')
-rw-r--r--package/rdesktop/rdesktop-01-8bit-colors.patch21
1 files changed, 21 insertions, 0 deletions
diff --git a/package/rdesktop/rdesktop-01-8bit-colors.patch b/package/rdesktop/rdesktop-01-8bit-colors.patch
new file mode 100644
index 0000000000..710f8debef
--- /dev/null
+++ b/package/rdesktop/rdesktop-01-8bit-colors.patch
@@ -0,0 +1,21 @@
+diff -urpN rdesktop-1.5.0-orig/xwin.c rdesktop-1.5.0/xwin.c
+--- rdesktop-1.5.0-orig/xwin.c 2007-01-17 12:01:18.000000000 +0100
++++ rdesktop-1.5.0/xwin.c 2007-01-17 12:05:02.000000000 +0100
+@@ -1461,7 +1461,7 @@ select_visual(int screen_num)
+ }
+
+ /* we use a colourmap, so the default visual should do */
+- g_owncolmap = True;
++// g_owncolmap = True;
+ g_visual = vmatches[0].visual;
+ g_depth = vmatches[0].depth;
+ }
+@@ -1568,7 +1568,7 @@ ui_init(void)
+ {
+ g_xcolmap =
+ XCreateColormap(g_display, RootWindowOfScreen(g_screen), g_visual,
+- AllocNone);
++ (g_depth <= 8) ? AllocAll : AllocNone);
+ if (g_depth <= 8)
+ warning("Display colour depth is %d bit: you may want to use -C for a private colourmap.\n", g_depth);
+ }
OpenPOWER on IntegriCloud