From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1HOu9U-0007RE-Ib for qemu-devel@nongnu.org; Wed, 07 Mar 2007 06:17:48 -0500 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1HOu9S-0007QO-VB for qemu-devel@nongnu.org; Wed, 07 Mar 2007 06:17:48 -0500 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1HOu9S-0007QG-Qf for qemu-devel@nongnu.org; Wed, 07 Mar 2007 06:17:46 -0500 Received: from partizan.velesys.com ([213.184.230.195]) by monty-python.gnu.org with esmtp (Exim 4.60) (envelope-from ) id 1HOu9M-00028u-UQ for qemu-devel@nongnu.org; Wed, 07 Mar 2007 06:17:41 -0500 Received: from localhost (partizan [10.0.0.24]) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 3BA32D638F6 for ; Wed, 7 Mar 2007 13:17:50 +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 fggLBDbhdNiy for ; Wed, 7 Mar 2007 13:17:49 +0200 (EET) Received: from localhost.localdomain (xps.velesys.com [10.0.0.92]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by partizan.velesys.com (paritzan.velesys.com) with ESMTP id 1136BD63540 for ; Wed, 7 Mar 2007 13:17:49 +0200 (EET) Date: Wed, 7 Mar 2007 13:17:14 +0200 From: "Kirill A. Shutemov" Subject: Re: [Qemu-devel] [BUG] [PATCH] Syscall gethostname fix Message-ID: <20070307111714.GC18623@localhost.localdomain> References: <20070228141347.GA4618@localhost.localdomain> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="NKoe5XOeduwbEQHU" Content-Disposition: inline In-Reply-To: <20070228141347.GA4618@localhost.localdomain> 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 --NKoe5XOeduwbEQHU Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Wed, 28.02.2007 17:13], Kirill A. Shutemov wrote: > Patch in the attachment. addrlen bytes should be allocated, not target_addrlen. It's typo I think. > 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 targe= t_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)); > _______________________________________________ > Qemu-devel mailing list > Qemu-devel@nongnu.org > http://lists.nongnu.org/mailman/listinfo/qemu-devel --NKoe5XOeduwbEQHU 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) iD8DBQFF7p9RbWYnhzC5v6oRAgrjAKCUFJeMf3pZwz8piJXYoTzFGkGIsACcCdLP yMkz35edNeFqL4ht33+b570= =XwKh -----END PGP SIGNATURE----- --NKoe5XOeduwbEQHU--