]> git.proxmox.com Git - mirror_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)
committerJason Wang <jasowang@redhat.com>
Mon, 11 Jan 2016 03:01:35 +0000 (11:01 +0800)
commitaa7f9966dfdff500bbbf1956d9e115b1fa8987a6
tree8b4ba3789295b6019048759ca7427ab5c8083479
parent007cd223de527b5f41278f2d886c1a4beb3e67aa
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