Date: Thu, 29 Jan 2004 15:33:42 +0200 From: Ruslan Ermilov <ru@FreeBSD.org> To: Brooks Davis <brooks@FreeBSD.org> Cc: cvs-all@FreeBSD.org Subject: Re: cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h Message-ID: <20040129133342.GC19899@FreeBSD.org.ua> In-Reply-To: <200401270143.i0R1hEIO011023@repoman.freebsd.org> References: <200401270143.i0R1hEIO011023@repoman.freebsd.org>
next in thread | previous in thread | raw e-mail | index | archive | help
--hxkXGo8AKqTJ+9QI Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Jan 26, 2004 at 05:43:14PM -0800, Brooks Davis wrote: > brooks 2004/01/26 17:43:14 PST >=20 > FreeBSD src repository >=20 > Modified files: > sbin/ifconfig ifconfig.c ifconfig.h=20 > Log: > Use IFNAMSIZ instead of a magic value for the length of an interface > name. > =20 > Prevent the kernel from potentially overflowing the interface name > variable. The size argument of strlcpy is complex because the name is > not null-terminated in sdl_data. > =20 Thanks, that way I won't forget it again. ;-) Cheers, --=20 Ruslan Ermilov FreeBSD committer ru@FreeBSD.org --hxkXGo8AKqTJ+9QI Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAGQu2Ukv4P6juNwoRAvhZAJ4uEpH5tmMuWyKSiGh3tHOl5v4EEACdGtw2 gsYoemCQOj8LzG2cwTYXAEE= =Grs8 -----END PGP SIGNATURE----- --hxkXGo8AKqTJ+9QI--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040129133342.GC19899>