From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:55216) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1WSu8u-0003lI-3A for qemu-devel@nongnu.org; Wed, 26 Mar 2014 16:09:49 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1WSu8o-0002im-5T for qemu-devel@nongnu.org; Wed, 26 Mar 2014 16:09:44 -0400 Message-ID: <533333FD.3030409@redhat.com> Date: Wed, 26 Mar 2014 21:09:33 +0100 From: Max Reitz MIME-Version: 1.0 References: <1395835569-21193-1-git-send-email-stefanha@redhat.com> <1395835569-21193-12-git-send-email-stefanha@redhat.com> In-Reply-To: <1395835569-21193-12-git-send-email-stefanha@redhat.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH for-2.0 11/47] bochs: Check catalog_size header field (CVE-2014-0143) List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Stefan Hajnoczi , qemu-devel@nongnu.org Cc: Kevin Wolf , pmatouse@redhat.com, qemu-stable@nongnu.org On 26.03.2014 13:05, Stefan Hajnoczi wrote: > From: Kevin Wolf > > It should neither become negative nor allow unbounded memory > allocations. This fixes aborts in g_malloc() and an s->catalog_bitmap > buffer overflow on big endian hosts. > > Signed-off-by: Kevin Wolf > Reviewed-by: Stefan Hajnoczi > --- > block/bochs.c | 13 +++++++++++++ > tests/qemu-iotests/078 | 13 +++++++++++++ > tests/qemu-iotests/078.out | 10 +++++++++- > 3 files changed, 35 insertions(+), 1 deletion(-) Reviewed-by: Max Reitz