From owner-p4-projects@FreeBSD.ORG Sat Sep 24 19:50:57 2005 Return-Path: X-Original-To: p4-projects@freebsd.org Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 976C616A421; Sat, 24 Sep 2005 19:50:56 +0000 (GMT) X-Original-To: perforce@freebsd.org Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 3E93B16A41F for ; Sat, 24 Sep 2005 19:50:56 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id D414A43D49 for ; Sat, 24 Sep 2005 19:50:55 +0000 (GMT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.1/8.13.1) with ESMTP id j8OJotnn014182 for ; Sat, 24 Sep 2005 19:50:55 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id j8OJotuf014179 for perforce@freebsd.org; Sat, 24 Sep 2005 19:50:55 GMT (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Date: Sat, 24 Sep 2005 19:50:55 GMT Message-Id: <200509241950.j8OJotuf014179@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson To: Perforce Change Reviews Cc: Subject: PERFORCE change 84221 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 24 Sep 2005 19:50:57 -0000 http://perforce.freebsd.org/chv.cgi?CH=84221 Change 84221 by rwatson@rwatson_peppercorn on 2005/09/24 19:50:45 Catch another instance of the assumption that the path in a buffer returned by vn_fullpath() will be aligned to the beginning of the buffer. Affected files ... .. //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#39 edit Differences ... ==== //depot/projects/trustedbsd/audit3/sys/security/audit/kern_audit.c#39 (text+ko) ==== @@ -2413,7 +2413,7 @@ */ if (vn_fullpath(td, vp, &retbuf, &freebuf) == 0) { /* Copy and free buffer allocated by vn_fullpath() */ - bcopy(retbuf, *pathp, MAXPATHLEN); + strlcpy(*pathp, retbuf, MAXPATHLEN); free(freebuf, M_TEMP); } else { (*pathp)[0] = '\0';