Received: from eggs.gnu.org ([208.118.235.92]:55208) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1T7hW2-00062J-23 for qemu-devel@nongnu.org; Sat, 01 Sep 2012 02:49:10 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1T7hW0-0002kA-R3 for qemu-devel@nongnu.org; Sat, 01 Sep 2012 02:49:09 -0400 Message-ID: <5041AFE0.5070809@weilnetz.de> Date: Sat, 01 Sep 2012 08:49:04 +0200 From: Stefan Weil MIME-Version: 1.0 References: <1346444481-31727-1-git-send-email-sw@weilnetz.de> <50412E4D.9010204@suse.de> <871uimi9dm.fsf@blackfin.pond.sub.org> <0CD423D9-2A2E-46E5-B0B3-63D6E044436A@suse.de> In-Reply-To: <0CD423D9-2A2E-46E5-B0B3-63D6E044436A@suse.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: quoted-printable Subject: Re: [Qemu-devel] [PATCH] ppc405_uc: Fix buffer overflow List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Alexander Graf Cc: "qemu-trivial@nongnu.org" , "qemu-stable@nongnu.org" , Markus Armbruster , =?UTF-8?B?QW5kcmVhcyBGw6Q=?= =?UTF-8?B?cmJlcg==?= , "qemu-devel@nongnu.org" Am 01.09.2012 08:23, schrieb Alexander Graf: > > > On 31.08.2012, at 22:45, Markus Armbruster wrote: > >> Andreas F=C3=A4rber writes: >> static uint32_t dcr_read_pob (void *opaque, int dcrn) ... >> >>> >>> Reviewed-by: Andreas F=C3=A4rber >>> >>> We could alternatively leave besr[2] and access it with hardcoded 0..= 1. >> >> Minimally invasive fix would be besr[dcrn !=3D POB0_BESR0]. >> >> [...] > > I don't think the change is important enough for these stylistic questi= ons :). I'll just apply it once I'm back to a real internet connection. > > Alex Of course I considered those minimally invasive solutions. There was already other code in the same file which used besr0, besr1, and the wrong statements were simple enough to justify a duplication. If I were a compiler, I'd generate smaller and faster code with the new code :-) Cheers, Stefan W.