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
[-- Attachment #1 --] On Mon, Jan 26, 2004 at 05:43:14PM -0800, Brooks Davis wrote: > brooks 2004/01/26 17:43:14 PST > > FreeBSD src repository > > Modified files: > sbin/ifconfig ifconfig.c ifconfig.h > Log: > Use IFNAMSIZ instead of a magic value for the length of an interface > name. > > 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. > Thanks, that way I won't forget it again. ;-) Cheers, -- Ruslan Ermilov FreeBSD committer ru@FreeBSD.org [-- Attachment #2 --] -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (FreeBSD) iD8DBQFAGQu2Ukv4P6juNwoRAvhZAJ4uEpH5tmMuWyKSiGh3tHOl5v4EEACdGtw2 gsYoemCQOj8LzG2cwTYXAEE= =Grs8 -----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20040129133342.GC19899>
