Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1LrHQ1-0001Kq-Mw for qemu-devel@nongnu.org; Tue, 07 Apr 2009 15:57:13 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1LrHPz-0001JU-8e for qemu-devel@nongnu.org; Tue, 07 Apr 2009 15:57:12 -0400 Received: from [199.232.76.173] (port=42822 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1LrHPz-0001JR-2C for qemu-devel@nongnu.org; Tue, 07 Apr 2009 15:57:11 -0400 Received: from savannah.gnu.org ([199.232.41.3]:38512 helo=sv.gnu.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1LrHPy-0004JK-OB for qemu-devel@nongnu.org; Tue, 07 Apr 2009 15:57:10 -0400 Received: from cvs.savannah.gnu.org ([199.232.41.69]) by sv.gnu.org with esmtp (Exim 4.69) (envelope-from ) id 1LrHPy-0005yq-14 for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:57:10 +0000 Received: from aurel32 by cvs.savannah.gnu.org with local (Exim 4.69) (envelope-from ) id 1LrHPx-0005ym-P6 for qemu-devel@nongnu.org; Tue, 07 Apr 2009 19:57:09 +0000 MIME-Version: 1.0 Errors-To: aurel32 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit From: Aurelien Jarno Message-Id: Date: Tue, 07 Apr 2009 19:57:09 +0000 Subject: [Qemu-devel] [7022] vnc: Fix incorrect attempt to clear a flag Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Revision: 7022 http://svn.sv.gnu.org/viewvc/?view=rev&root=qemu&revision=7022 Author: aurel32 Date: 2009-04-07 19:57:09 +0000 (Tue, 07 Apr 2009) Log Message: ----------- vnc: Fix incorrect attempt to clear a flag 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. Signed-off-by: Brian Kress Signed-off-by: Aurelien Jarno Modified Paths: -------------- trunk/vnc.c Modified: trunk/vnc.c =================================================================== --- trunk/vnc.c 2009-04-07 18:43:28 UTC (rev 7021) +++ trunk/vnc.c 2009-04-07 19:57:09 UTC (rev 7022) @@ -1598,7 +1598,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 */