(This is a CC of the message I sent to the Debian BTS and to upstream)

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)
        {


** Attachment added: "rdesktop-xcreateimage.patch"
   http://librarian.launchpad.net/7284461/rdesktop-xcreateimage.patch

-- 
Segmentation Fault (core dumped)
https://bugs.launchpad.net/bugs/104332
You received this bug notification because you are a member of Ubuntu
Bugs, which is the bug contact for Ubuntu.

-- 
ubuntu-bugs mailing list
ubuntu-bugs@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to