From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HF59D-0001Ug-Pe for qemu-devel@nongnu.org; Thu, 08 Feb 2007 04:00:55 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HF59C-0001UU-6S for qemu-devel@nongnu.org; Thu, 08 Feb 2007 04:00:55 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HF59B-0001UQ-V2 for qemu-devel@nongnu.org; Thu, 08 Feb 2007 04:00:54 -0500 Received: from mx20.gnu.org ([199.232.41.8]) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA:32) (Exim 4.52) id 1HF59B-0006FQ-IC for qemu-devel@nongnu.org; Thu, 08 Feb 2007 04:00:53 -0500 Received: from partizan.velesys.com ([213.184.230.195] helo=localhost.localdomain) by mx20.gnu.org with esmtp (Exim 4.52) id 1HF59A-0000R5-QQ for qemu-devel@nongnu.org; Thu, 08 Feb 2007 04:00:53 -0500 Date: Thu, 8 Feb 2007 11:00:50 +0300 From: "Kirill A. Shutemov" Message-ID: <20070208080050.GA10997@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="aM3YZ0Iwxop3KEKx" Content-Disposition: inline Subject: [Qemu-devel] [BUG] [PATCH] qemu -snapshot Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --aM3YZ0Iwxop3KEKx Content-Type: multipart/mixed; boundary="FL5UXtIhxfXey3p5" Content-Disposition: inline --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Buffer for second argument of realpath should be size PATH_MAX. Patch by Sergey Vlasov in the attachment. --FL5UXtIhxfXey3p5 Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="qemu-0.9.0-alt-realpath.patch" Content-Transfer-Encoding: quoted-printable --- qemu-0.9.0/block.c.alt-realpath 2007-02-06 22:06:26 +0300 +++ qemu-0.9.0/block.c 2007-02-06 22:16:31 +0300 @@ -326,8 +326,8 @@ int bdrv_open2(BlockDriverState *bs, con BlockDriver *drv) { int ret, open_flags; - char tmp_filename[1024]; - char backing_filename[1024]; + char tmp_filename[PATH_MAX]; + char backing_filename[PATH_MAX]; =20 bs->read_only =3D 0; bs->is_temporary =3D 0; --FL5UXtIhxfXey3p5-- --aM3YZ0Iwxop3KEKx Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) iD8DBQFFytiybWYnhzC5v6oRAvEsAKCTsOEQx+JYieroKlI4d2yPNdnRuACeLVqN Uo8+AZDhMCLUHPl+EX/4GcQ= =wuGO -----END PGP SIGNATURE----- --aM3YZ0Iwxop3KEKx--