From owner-cvs-all@FreeBSD.ORG Tue Dec 30 02:21:03 2003 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 5684C16A4CE; Tue, 30 Dec 2003 02:21:03 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 86A3943D48; Tue, 30 Dec 2003 02:21:01 -0800 (PST) (envelope-from schweikh@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 hBUAL10B093869; Tue, 30 Dec 2003 02:21:01 -0800 (PST) (envelope-from schweikh@repoman.freebsd.org) Received: (from schweikh@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBUAL10w093868; Tue, 30 Dec 2003 02:21:01 -0800 (PST) (envelope-from schweikh) Message-Id: <200312301021.hBUAL10w093868@repoman.freebsd.org> From: Jens Schweikhardt Date: Tue, 30 Dec 2003 02:21:01 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_4 Subject: cvs commit: src/usr.sbin/pkg_install/lib match.c 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, 30 Dec 2003 10:21:03 -0000 schweikh 2003/12/30 02:21:01 PST FreeBSD src repository Modified files: (Branch: RELENG_4) usr.sbin/pkg_install/lib match.c Log: MFC: Fix a case of undefined behavior due to overlapping buf objects in snprintf (buf, size, fmt, buf, etc). This only works by chance with our libc, but fails (with a truncated string) on e.g. glibc. Revision Changes Path 1.2.2.9 +3 -2 src/usr.sbin/pkg_install/lib/match.c