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

Brooks Davis brooks at FreeBSD.org
Mon Jan 26 17:43:20 PST 2004


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.
  
  Revision  Changes    Path
  1.93      +4 -3      src/sbin/ifconfig/ifconfig.c
  1.11      +1 -1      src/sbin/ifconfig/ifconfig.h


More information about the cvs-src mailing list