Received: from eggs.gnu.org ([2001:4830:134:3::10]:42998) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xz7xR-0005N2-BO for qemu-devel@nongnu.org; Thu, 11 Dec 2014 12:55:27 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xz7xJ-0001yT-Qv for qemu-devel@nongnu.org; Thu, 11 Dec 2014 12:55:21 -0500 Message-ID: <5489DA78.9030003@msgid.tls.msk.ru> Date: Thu, 11 Dec 2014 20:55:04 +0300 From: Michael Tokarev MIME-Version: 1.0 References: <1418203056-5365-1-git-send-email-pbonzini@redhat.com> In-Reply-To: <1418203056-5365-1-git-send-email-pbonzini@redhat.com> Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [Qemu-trivial] [PATCH] vt82c686: avoid out-of-bounds read List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Paolo Bonzini , qemu-devel@nongnu.org Cc: qemu-trivial@nongnu.org, zhang.zhanghailiang@huawei.com, peter.huangpeng@huawei.com 10.12.2014 12:17, Paolo Bonzini wrote: > superio_ioport_readb can read the 256th element of the array. Is there a legitimate reason for it to access byte index 256? What is the actual size of superio config memory, 256 or 257? I don't know, but somehow it looks like it should be 256. If that's the case, the fix is wrong and superio_ioport_readb() should be fixed instead... Thanks, /mjt