From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([2001:4830:134:3::10]:43498) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUukx-0001Cd-F0 for qemu-devel@nongnu.org; Fri, 19 Sep 2014 05:45:40 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XUuks-0008Bj-Ic for qemu-devel@nongnu.org; Fri, 19 Sep 2014 05:45:35 -0400 Received: from mx1.redhat.com ([209.132.183.28]:64301) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XUukr-00089t-Te for qemu-devel@nongnu.org; Fri, 19 Sep 2014 05:45:30 -0400 Received: from int-mx14.intmail.prod.int.phx2.redhat.com (int-mx14.intmail.prod.int.phx2.redhat.com [10.5.11.27]) by mx1.redhat.com (8.14.4/8.14.4) with ESMTP id s8J9jMcv023910 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=FAIL) for ; Fri, 19 Sep 2014 05:45:23 -0400 Date: Fri, 19 Sep 2014 10:45:20 +0100 From: Stefan Hajnoczi Message-ID: <20140919094520.GE27501@stefanha-thinkpad.redhat.com> References: <1410894726-21836-1-git-send-email-jcody@redhat.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="EgVrEAR5UttbsTXg" Content-Disposition: inline In-Reply-To: <1410894726-21836-1-git-send-email-jcody@redhat.com> Subject: Re: [Qemu-devel] [PATCH] block: vhdx - fix reading beyond pointer during image creation List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jeff Cody Cc: kwolf@redhat.com, qemu-devel@nongnu.org --EgVrEAR5UttbsTXg Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Sep 16, 2014 at 03:12:06PM -0400, Jeff Cody wrote: > In vhdx_create_metadata(), we allocate 40 bytes to entry_buffer for > the various metadata table entries. However, we write out 64kB from > that buffer into the new file. Only write out the correct 40 bytes. >=20 > Signed-off-by: Jeff Cody > --- > block/vhdx.c | 16 ++++++++-------- > 1 file changed, 8 insertions(+), 8 deletions(-) Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan --EgVrEAR5UttbsTXg Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1 iQEcBAEBAgAGBQJUG/swAAoJEJykq7OBq3PIl5IH/1Vz95zR4d3cPglCxlH5272h 62rI0h/1+Ui/sqBGt6eoDh52Fj1Oeno2AmZ1nZTr6SRds39jfBytl4Xk8yyuq/PQ IHhgDGfYKPT/4yLYsR2r99Dldhqr0CxD8aiXm03F/ju+XnVjN5othLs8bjFuRj7h T58vnWavpAHDOUnc1yuFCqE1e0/7UMoW3Uz+8uu8Z+MSqMn+XU/o7CFF6sOAeOXX yNFgPoeE6ttsXqqXL/gwNQVWyj7DYIWM3bgAIVIEVu5i3GdTE9ItTExeR8hh3bML rKRw7oCu55vTzqEOzKUQ9NJvETtXLycAF91jZSAiHHhYp9MZaNSI8mgOfnelP+8= =WyxI -----END PGP SIGNATURE----- --EgVrEAR5UttbsTXg--