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

2015-12-30 Thread Jason Wang
On 12/30/2015 03:44 PM, P J P wrote: > From: Prasad J Pandit > > While doing ioport r/w oprations, ne2000 device emulation suffers > from OOB r/w error. Update respective array bounds check to avoid > OOB access. > > Reported-by: Ling Liu > Signed-off-by: Prasad J Pandit > --- > hw/net/ne2000

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

2015-12-29 Thread P J P
From: Prasad J Pandit Hello, An OOB r/w issue in ne2000 device emulation was reported by Mr Ling Liu, CC'd here. The issue occurs while doing ne2000 ioport r/w operations, due to incorrect array bounds checks. Below is a proposed (tested)patch to fix this issue. Does it look okay? Thank you. -

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

2015-12-29 Thread P J P
From: Prasad J Pandit While doing ioport r/w oprations, ne2000 device emulation suffers from OOB r/w error. Update respective array bounds check to avoid OOB access. Reported-by: Ling Liu Signed-off-by: Prasad J Pandit --- hw/net/ne2000.c | 34 -- 1 file change