Re: [Qemu-devel] [PATCH v3] net: ne2000: fix bounds check in ioport operations

2016-01-04 Thread P J P
+-- On Mon, 4 Jan 2016, Jason Wang wrote --+ | > +if (addr < 32 | > +|| (addr >= NE2000_PMEM_START | > +&& addr + sizeof(uint32_t) - 1 < NE2000_MEM_SIZE)) { | > return ldl_le_p(s->mem + addr); | > } else { | > return 0x; | | Applied to my -net

Re: [Qemu-devel] [PATCH v3] net: ne2000: fix bounds check in ioport operations

2016-01-03 Thread Jason Wang
On 12/31/2015 07:35 PM, P J P wrote: > From: Prasad J Pandit > > While doing ioport r/w operations, ne2000 device emulation suffers > from OOB r/w errors. Update respective array bounds check to avoid > OOB access. > > Reported-by: Ling Liu > Signed-off-by: Prasad J Pandit > --- > hw/net/ne20

[Qemu-devel] [PATCH v3] net: ne2000: fix bounds check in ioport operations

2015-12-31 Thread P J P
From: Prasad J Pandit While doing ioport r/w operations, ne2000 device emulation suffers from OOB r/w errors. Update respective array bounds check to avoid OOB access. Reported-by: Ling Liu Signed-off-by: Prasad J Pandit --- hw/net/ne2000.c | 10 ++ 1 file changed, 6 insertions(+), 4