Ola Lundqvist <[EMAIL PROTECTED]> writes:
> Do you have a patch file that you can send to me?
Here's a patch.
diff -ru vnc4-4.1.1+X4.3.0.orig/unix/xc/programs/Xserver/cfb/cfb8line.c vnc4-4.1.1+X4.3.0/unix/xc/programs/Xserver/cfb/cfb8line.c
--- vnc4-4.1.1+X4.3.0.orig/unix/xc/programs/Xserver/cfb/cfb8line.c 2008-09-20 19:59:29.000000000 +0300
+++ vnc4-4.1.1+X4.3.0/unix/xc/programs/Xserver/cfb/cfb8line.c 2008-09-20 20:02:31.000000000 +0300
@@ -1462,7 +1462,7 @@
{
body body;
}
- if (len & 1)
+ if (len > 0 && len & 1)
body;
IMPORTANT_END;
I'm still bit unsure about it but at least it fixes the crash here and
I can't figure out any bad side effects.