Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1JArIQ-0002iN-V3 for qemu-devel@nongnu.org; Fri, 04 Jan 2008 13:29:31 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1JArIP-0002hT-Gc for qemu-devel@nongnu.org; Fri, 04 Jan 2008 13:29:30 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1JArIP-0002hO-64 for qemu-devel@nongnu.org; Fri, 04 Jan 2008 13:29:29 -0500 Received: from ns.suse.de ([195.135.220.2] helo=mx1.suse.de) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1JArIP-0003Na-0b for qemu-devel@nongnu.org; Fri, 04 Jan 2008 13:29:29 -0500 Received: from Relay1.suse.de (relay-ext.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id AFB612536D for ; Fri, 4 Jan 2008 19:29:24 +0100 (CET) From: Andreas Schwab Subject: Re: [Qemu-devel] [PATCH] ensure all invocations to bdrv_{read, write} use (uint8_t *) for its third parameter References: <20080104081041.GB9968@tapir> <20080104132039.GA22809@networkno.de> <391FA8ED-AD24-4AFC-915E-5609235542F1@web.de> Date: Fri, 04 Jan 2008 19:29:24 +0100 In-Reply-To: <391FA8ED-AD24-4AFC-915E-5609235542F1@web.de> ("Andreas =?iso-8859-1?Q?F=E4rber=22's?= message of "Fri\, 4 Jan 2008 14\:41\:29 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable 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 Andreas F=E4rber writes: > Am 04.01.2008 um 14:20 schrieb Thiemo Seufer: > >> Carlo Marcelo Arenas Belon wrote: >>> Trivial fix that ensures that all buffers used for bdrv_read or >>> bdrv_write >>> are from an array of the uint8_t type >> >> Do we have a host where this actually makes a difference? > > I believe Perl makes sizeof(char) checks, so there likely is some platf= orm > where sizeof(char) > 1. Not in C. sizeof(char) =3D=3D 1 by definition. Also CHAR_BIT >=3D 8, so uint8_t can never be wider than char. Andreas. --=20 Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstra=DFe 5, 90409 N=FCrnberg, Germany PGP key fingerprint =3D 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED= 5 "And now for something completely different."