Re: [Qemu-devel] [PATCH] hw/pci-host/bonito: Avoid buffer overrun for bad LDMA/COP accesses

2015-07-30 Thread Peter Maydell
On 30 July 2015 at 23:02, Aurelien Jarno wrote: > On 2015-07-30 16:33, Peter Maydell wrote: >> The LDMA and COP memory regions represent four 32 bit registers >> each, but the memory regions themselves are 0x100 bytes large. >> Add guards to the read and write accessors so that bogus accesses >> b

Re: [Qemu-devel] [PATCH] hw/pci-host/bonito: Avoid buffer overrun for bad LDMA/COP accesses

2015-07-30 Thread Aurelien Jarno
On 2015-07-30 16:33, Peter Maydell wrote: > The LDMA and COP memory regions represent four 32 bit registers > each, but the memory regions themselves are 0x100 bytes large. > Add guards to the read and write accessors so that bogus accesses > beyond the four defined registers don't just run off the

[Qemu-devel] [PATCH] hw/pci-host/bonito: Avoid buffer overrun for bad LDMA/COP accesses

2015-07-30 Thread Peter Maydell
The LDMA and COP memory regions represent four 32 bit registers each, but the memory regions themselves are 0x100 bytes large. Add guards to the read and write accessors so that bogus accesses beyond the four defined registers don't just run off the end of the bonldma and boncop structs and into wh