From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HMQhU-0006Ju-TN for qemu-devel@nongnu.org; Wed, 28 Feb 2007 10:26:41 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HMQhT-0006JI-Eo for qemu-devel@nongnu.org; Wed, 28 Feb 2007 10:26:40 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HMQhT-0006JF-8K for qemu-devel@nongnu.org; Wed, 28 Feb 2007 10:26:39 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.52) id 1HMQhS-0008Tz-5C for qemu-devel@nongnu.org; Wed, 28 Feb 2007 10:26:39 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 30A0ED632DE for ; Wed, 28 Feb 2007 17:30:17 +0200 (EET) Received: from partizan.velesys.com ([10.0.0.24]) by localhost (partizan.velesys.com [10.0.0.24]) (amavisd-new, port 10024) with ESMTP id vMbFeuuWgJvL for ; Wed, 28 Feb 2007 17:30:16 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 3128BD632D5 for ; Wed, 28 Feb 2007 17:30:16 +0200 (EET) Date: Wed, 28 Feb 2007 17:13:47 +0300 From: "Kirill A. Shutemov" Message-ID: <20070228141347.GA4618@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="oC1+HKm2/end4ao3" Content-Disposition: inline Subject: [Qemu-devel] [BUG] [PATCH] Syscall gethostname fix 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 --oC1+HKm2/end4ao3 Content-Type: multipart/mixed; boundary="TB36FDmn/VVEgNH/" Content-Disposition: inline --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Patch in the attachment. --TB36FDmn/VVEgNH/ Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="syscall_getsockname_fix.patch" Content-Transfer-Encoding: quoted-printable diff --git a/qemu/linux-user/syscall.c b/qemu/linux-user/syscall.c index f3f97b0..ccb0e52 100644 --- a/qemu/linux-user/syscall.c +++ b/qemu/linux-user/syscall.c @@ -875,7 +875,7 @@ static long do_getsockname(int fd, target_ulong target_= addr, target_ulong target_addrlen) { socklen_t addrlen =3D tget32(target_addrlen); - void *addr =3D alloca(target_addrlen); + void *addr =3D alloca(addrlen); long ret; =20 ret =3D get_errno(getsockname(fd, addr, &addrlen)); --TB36FDmn/VVEgNH/-- --oC1+HKm2/end4ao3 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) iD8DBQFF5Y4bbWYnhzC5v6oRAlrSAJ4jZpBrnkGPoxhhgAL54hfEvU9DZACeNRUj Vx6kGvzKIMC4Jh/YoxGWwoE= =49dy -----END PGP SIGNATURE----- --oC1+HKm2/end4ao3--