Here is a patch that prevents rdesktop from crashing due to increased Xlib 
sanity checking 
of arguments passed to XCreateImage(3). Thanks to Julien Cristau for his 
helpful explanation
of the problem on the Debian bug tracking system.

Thanks,

Mark Heily
<[EMAIL PROTECTED]>


References:

[1] http://www.mail-archive.com/debian-bugs-dist@lists.debian.org/msg326793.html
[2] https://bugs.launchpad.net/ubuntu/+source/rdesktop/+bug/104332


Patch:

--- ../rdesktop/xwin.c  2007-01-17 02:39:31.000000000 -0500
+++ xwin.c      2007-04-11 11:13:51.000000000 -0400
@@ -3218,7 +3218,7 @@
                return;
 
        image = XCreateImage(g_display, g_visual, g_depth, ZPixmap, 0,
-                            (char *) data, cx, cy, BitmapPad(g_display), cx * 
g_bpp / 8);
+                            (char *) data, cx, cy, BitmapPad(g_display), 0);
 
        if (g_ownbackstore)
        {




-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to