From owner-cvs-src@FreeBSD.ORG Mon Jan 16 00:52:21 2006 Return-Path: X-Original-To: cvs-src@FreeBSD.org Delivered-To: cvs-src@FreeBSD.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 2EDE316A41F; Mon, 16 Jan 2006 00:52:21 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D9B4643D45; Mon, 16 Jan 2006 00:52:20 +0000 (GMT) (envelope-from rwatson@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id k0G0qKVG041003; Mon, 16 Jan 2006 00:52:20 GMT (envelope-from rwatson@repoman.freebsd.org) Received: (from rwatson@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id k0G0qKSu041002; Mon, 16 Jan 2006 00:52:20 GMT (envelope-from rwatson) Message-Id: <200601160052.k0G0qKSu041002@repoman.freebsd.org> From: Robert Watson Date: Mon, 16 Jan 2006 00:52:20 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Cc: Subject: cvs commit: src/lib/libutil login_times.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jan 2006 00:52:21 -0000 rwatson 2006-01-16 00:52:20 UTC FreeBSD src repository Modified files: lib/libutil login_times.c Log: Replace strncpy() with strlcpy() when parsing login time limit strings from /etc/login.conf, or an unterminated string buffer could result. Probably, login_times.c should reject excessively long time strings as unparseable, rather than truncating, which might render an invalid string valid. Found with: Coverity Prevent (tm) Reviewed by: csjp MFC after: 3 days Revision Changes Path 1.10 +1 -1 src/lib/libutil/login_times.c