All of lore.kernel.org
 help / color / mirror / Atom feed
* [Qemu-devel] [PATCH] Fix incorrect attempt to clear a flag in vnc.c
@ 2009-02-14 12:48 Brian Kress
  2009-02-14 21:06 ` Anthony Liguori
  0 siblings, 1 reply; 4+ messages in thread
From: Brian Kress @ 2009-02-14 12:48 UTC (permalink / raw)
  To: qemu-devel

[-- Attachment #1: Type: text/plain, Size: 263 bytes --]

In vnc.c in pixel_format_message, the code tries to clear the 
QEMU_ALLOCATED_FLAG
from the client display surface, however it uses the wrong operator and 
ends up enabling all
other flags.  Most notably this enables the big endian flag and causes 
some chaos. 


[-- Attachment #2: patch.flagfix --]
[-- Type: text/plain, Size: 502 bytes --]

Index: vnc.c
===================================================================
--- vnc.c	(revision 6619)
+++ vnc.c	(working copy)
@@ -1421,7 +1421,7 @@
     else if (vs->ds->surface->pf.bits_per_pixel == 8)
         vs->send_hextile_tile = send_hextile_tile_8;
     vs->clientds = *(vs->ds->surface);
-    vs->clientds.flags |= ~QEMU_ALLOCATED_FLAG;
+    vs->clientds.flags &= ~QEMU_ALLOCATED_FLAG;
     vs->write_pixels = vnc_write_pixels_copy;
 
     vnc_write(vs, pad, 3);           /* padding */

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2009-04-07 19:59 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-14 12:48 [Qemu-devel] [PATCH] Fix incorrect attempt to clear a flag in vnc.c Brian Kress
2009-02-14 21:06 ` Anthony Liguori
2009-02-14 21:20   ` Brian Kress
2009-04-07 19:59     ` Aurelien Jarno

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.