Received: from eggs.gnu.org ([2001:4830:134:3::10]:38247) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEBQk-0003HV-F6 for qemu-devel@nongnu.org; Wed, 30 Dec 2015 02:44:23 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aEBQf-00008z-HL for qemu-devel@nongnu.org; Wed, 30 Dec 2015 02:44:22 -0500 Received: from mx1.redhat.com ([209.132.183.28]:37503) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aEBQf-000089-CR for qemu-devel@nongnu.org; Wed, 30 Dec 2015 02:44:17 -0500 From: P J P Date: Wed, 30 Dec 2015 13:14:06 +0530 Message-Id: <1451461447-6829-1-git-send-email-ppandit@redhat.com> Subject: [Qemu-devel] [PATCH] net: ne2000: fix bounds check in ioport operations List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: QEMU Developers Cc: Jason Wang , Prasad J Pandit , Ling Liu 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. -- Prasad J Pandit (1): net: ne2000: fix bounds check in ioport operations hw/net/ne2000.c | 34 ++++++++++++++++++++-------------- 1 file changed, 20 insertions(+), 14 deletions(-) -- 2.4.3