cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h

Ruslan Ermilov ru at FreeBSD.org
Thu Jan 29 05:33:18 PST 2004


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 at FreeBSD.org
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-all/attachments/20040129/0d0eb96b/attachment-0001.bin


More information about the cvs-all mailing list