Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2004 17:43:14 -0800 (PST)
From:      Brooks Davis <brooks@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h
Message-ID:  <200401270143.i0R1hEIO011023@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200401270143.i0R1hEIO011023>