]> git.ipfire.org Git - thirdparty/qemu.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)
committerMichael Roth <mdroth@linux.vnet.ibm.com>
Tue, 22 Mar 2016 22:40:34 +0000 (17:40 -0500)
commit38e09211b6ab29a21788a39166ded08c1724879d
treed575ff0065491ca5cb731aea983bf4805f5ffcfb
parentd0ee85b4e4c6cc2c8fac311d6df2ed412ed0df5f
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>
(cherry picked from commit aa7f9966dfdff500bbbf1956d9e115b1fa8987a6)
Signed-off-by: Michael Roth <mdroth@linux.vnet.ibm.com>
hw/net/ne2000.c