]> xenbits.xensource.com Git - qemu-upstream-4.5-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 14:55:01 +0000 (14:55 +0000)
commitae393c6d2c23dc1a797cdbad7f64d0810eda75d6
tree98b9b2322f8f3e9f127f046ff0d594001cb789d9
parentb402c283d4edc25d8eafae95329cea38a5b305f9
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