From owner-cvs-all@FreeBSD.ORG Mon Jan 26 17:43:20 2004 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 88DBA16A4CE; Mon, 26 Jan 2004 17:43:20 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2D91D43D53; Mon, 26 Jan 2004 17:43:15 -0800 (PST) (envelope-from brooks@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id i0R1hF0B011024; Mon, 26 Jan 2004 17:43:15 -0800 (PST) (envelope-from brooks@repoman.freebsd.org) Received: (from brooks@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i0R1hEIO011023; Mon, 26 Jan 2004 17:43:14 -0800 (PST) (envelope-from brooks) Message-Id: <200401270143.i0R1hEIO011023@repoman.freebsd.org> From: Brooks Davis Date: Mon, 26 Jan 2004 17:43:14 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sbin/ifconfig ifconfig.c ifconfig.h X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 27 Jan 2004 01:43:20 -0000 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