[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Qemu-stable] [Qemu-devel] [PATCH] ppc405_uc: Fix buffer overflow
From: |
Stefan Weil |
Subject: |
Re: [Qemu-stable] [Qemu-devel] [PATCH] ppc405_uc: Fix buffer overflow |
Date: |
Sat, 01 Sep 2012 08:49:04 +0200 |
User-agent: |
Mozilla/5.0 (X11; Linux i686; rv:14.0) Gecko/20120714 Thunderbird/14.0 |
Am 01.09.2012 08:23, schrieb Alexander Graf:
On 31.08.2012, at 22:45, Markus Armbruster <address@hidden> wrote:
Andreas Färber <address@hidden> writes:
static uint32_t dcr_read_pob (void *opaque, int dcrn)
...
Reviewed-by: Andreas Färber <address@hidden>
We could alternatively leave besr[2] and access it with hardcoded 0..1.
Minimally invasive fix would be besr[dcrn != POB0_BESR0].
[...]
I don't think the change is important enough for these stylistic questions :).
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.