cvs commit: src/sbin/ifconfig ifconfig.c

Andrew Thompson thompsa at FreeBSD.org
Thu Oct 4 02:45:42 PDT 2007


thompsa     2007-10-04 09:45:41 UTC

  FreeBSD src repository

  Modified files:
    sbin/ifconfig        ifconfig.c 
  Log:
  Fix the module name matching to the drivers present in the kernel. Previously
  it would return true on a partial match where it would think the edsc module
  was already present by having a positive match on 'ed'.  This changes it so
  that it compares the full string including the nul terminators.
  
  This also fixes a buffer overflow in the ifkind variable where the length of
  the interface name in *argv wasnt checked for size.
  
  Reviewed by:    brooks
  Approved by:    re (gnn)
  
  Revision  Changes    Path
  1.134     +14 -7     src/sbin/ifconfig/ifconfig.c


More information about the cvs-src mailing list