From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Virus-Scanned: amavisd-new at velesys.com Date: Wed, 28 Nov 2007 12:15:23 +0200 From: "Kirill A. Shutemov" To: ALT Linux Team development discussions Message-ID: <20071128101523.GA13629@localhost.localdomain> References: <20071125120814.GA22522@basalt.office.altlinux.org> <20071125195520.GS28492@osdn.org.ua> <20071125211632.GC30421@basalt.office.altlinux.org> <20071126085538.GB13915@mw.local.seiros.ru> <474C3898.6090500@sandy.ru> <20071127154518.GM11953@basalt.office.altlinux.org> <75e139a00711272256i770bd25ci550debea6f99b693@mail.gmail.com> <474D2CED.30401@sandy.ru> <474D3678.508@altlinux.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="UlVJffcvxoiEqYs2" Content-Disposition: inline In-Reply-To: <474D3678.508@altlinux.org> X-Operating-System: ALT Linux Sisyphus (20070101) (Kernel 2.6.24-kas-alt1) User-Agent: Mutt/1.5.16 (2007-06-09) Subject: Re: [devel] IA: destination buffer overflow - ppp X-BeenThere: devel@lists.altlinux.org X-Mailman-Version: 2.1.9 Precedence: list Reply-To: ALT Linux Team development discussions List-Id: ALT Linux Team development discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 28 Nov 2007 10:14:12 -0000 Archived-At: List-Archive: List-Post: --UlVJffcvxoiEqYs2 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On [Wed, 28.11.2007 12:35], Alexander Bokovoy wrote: > Dmitriy Khanzhin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > > Slava Semushin =D0=BF=D0=B8=D1=88=D0=B5=D1=82: > >> 2007/11/27, Dmitry V. Levin : > >>> On Tue, Nov 27, 2007 at 06:32:40PM +0300, Dmitriy Khanzhin wrote: > >>>=20 > >>>> - strncat(ttyname, name, sizeof(ttyname)); > >> + strncat(ttyname, name, sizeof(ttyname)-1); > >>=20 >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B=D0=B0=D0=B3=D0=B8=D0=BD=D0=B0. sizeof(ttyname), =D0=BA=D0=B0= =D0=BA =D0=B8 sizeof(name), =D1=80=D0=B0=D0=B2=D0=BD=D0=BE=D1=81=D0=B8=D0= =BB=D1=8C=D0=BD=D1=8B sizeof(char *) > =D0=B8 =D1=80=D0=B0=D0=B2=D0=BD=D1=8B =D1=80=D0=B0=D0=B7=D0=BC=D0=B5=D1= =80=D1=83 =D1=83=D0=BA=D0=B0=D0=B7=D0=B0=D1=82=D0=B5=D0=BB=D1=8F, =D0=BD=D0= =BE =D0=BD=D0=B8=D0=BA=D0=B0=D0=BA =D0=BD=D0=B5 =D1=80=D0=B0=D0=B7=D0=BC=D0= =B5=D1=80=D1=83 =D1=81=D1=82=D1=80=D0=BE=D0=BA=D0=B8. =D0=A2=D0=B0=D0=BC = =D0=BD=D1=83=D0=B6=D0=BD=D0=BE > =D0=B8=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7=D0=BE=D0=B2=D0=B0=D1=82=D1=8C = strlen(ttyname). =D0=95=D1=81=D0=BB=D0=B8 ttyname =D0=BE=D0=B1=D1=8A=D1=8F=D0=B2=D0=BB=D0=B5= =D0=BD =D0=BA=D0=B0=D0=BA char ttyname[PATH_MAX]; =D1=82=D0=BE sizeof(ttyname) =D0=B1=D1=83=D0=B4=D0=B5=D1=82 =D1=80=D0=B0=D0= =B2=D0=B5=D0=BD PATH_MAX; --=20 Regards, Kirill A. Shutemov + Belarus, Minsk + Velesys LLC, http://www.velesys.com/ + ALT Linux Team, http://www.altlinux.com/ --UlVJffcvxoiEqYs2 Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) iD8DBQFHTT+7bWYnhzC5v6oRAmm8AJ0SAU5gO9fU7PIQtPOBXLrFn+zzZQCfULA7 BiD/qkky9l6QzI9iSSHJavU= =uGUI -----END PGP SIGNATURE----- --UlVJffcvxoiEqYs2--