]> xenbits.xensource.com Git - qemu-upstream-4.6-testing.git/commit
net: ne2000: fix bounds check in ioport operations
authorPrasad J Pandit <pjp@fedoraproject.org>
Thu, 31 Dec 2015 11:35:27 +0000 (17:05 +0530)
committerStefano Stabellini <stefano.stabellini@eu.citrix.com>
Fri, 5 Feb 2016 12:45:03 +0000 (12:45 +0000)
commit053f91fcc2011818bf3e42913fc5b715636c8252
tree3c8a181a7859efccc90cd417489134f1edbf56ab
parentbb4083e49db300c9db6074cb30f9514b1b907f81
net: ne2000: fix bounds check in ioport operations

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 <liuling-it@360.cn>
Cc: qemu-stable@nongnu.org
Signed-off-by: Prasad J Pandit <pjp@fedoraproject.org>
Signed-off-by: Jason Wang <jasowang@redhat.com>
hw/net/ne2000.c