Received: from eggs.gnu.org ([2001:4830:134:3::10]:50275) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xel4J-0003a2-Et for qemu-devel@nongnu.org; Thu, 16 Oct 2014 09:26:21 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Xel4D-0002La-9v for qemu-devel@nongnu.org; Thu, 16 Oct 2014 09:26:15 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64011) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Xel4D-0002LI-2y for qemu-devel@nongnu.org; Thu, 16 Oct 2014 09:26:09 -0400 From: Max Reitz Date: Thu, 16 Oct 2014 15:25:55 +0200 Message-Id: <1413465957-20865-1-git-send-email-mreitz@redhat.com> Subject: [Qemu-devel] [PATCH 0/2] qcow2: Do not overflow when writing an L1 sector List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Kevin Wolf , Peter Lieven , Stefan Hajnoczi , Max Reitz qcow2_write_l1_entry() may read L1 entries from beyond the end of the in-memory L1 table when updating a sector. Fix this and add a qemu-iotest. Max Reitz (2): qcow2: Do not overflow when writing an L1 sector iotests: Add test for qcow2 L1 table update block/qcow2-cluster.c | 6 +++-- tests/qemu-iotests/107 | 61 ++++++++++++++++++++++++++++++++++++++++++++++ tests/qemu-iotests/107.out | 10 ++++++++ tests/qemu-iotests/group | 1 + 4 files changed, 76 insertions(+), 2 deletions(-) create mode 100755 tests/qemu-iotests/107 create mode 100644 tests/qemu-iotests/107.out -- 2.1.2