From owner-cvs-all@FreeBSD.ORG Tue Jan 6 21:28:58 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 BF90016A4CE; Tue, 6 Jan 2004 21:28:58 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id F0F1B43D41; Tue, 6 Jan 2004 21:28:57 -0800 (PST) (envelope-from anholt@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 i075Sv0B026590; Tue, 6 Jan 2004 21:28:57 -0800 (PST) (envelope-from anholt@repoman.freebsd.org) Received: (from anholt@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id i075SvlZ026589; Tue, 6 Jan 2004 21:28:57 -0800 (PST) (envelope-from anholt) Message-Id: <200401070528.i075SvlZ026589@repoman.freebsd.org> From: Eric Anholt Date: Tue, 6 Jan 2004 21:28:57 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/usr.sbin/fdformat fdformat.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: Wed, 07 Jan 2004 05:28:58 -0000 anholt 2004/01/06 21:28:57 PST FreeBSD src repository Modified files: usr.sbin/fdformat fdformat.c Log: From PR: In fdformat.c a closing parenthesis is at the wrong place. Instead of adding sizeof _PATH_DEV + 1 to the length of argv[optind], the length of the string starting (sizeof _PATH_DEV + 1) characters after argv[optind]'s beginning (accessing junk memory if we jump over the terminating null character) is passed to malloc(). PR: bin/60026 Submitted by: Stefan Farfeleder Revision Changes Path 1.21 +1 -1 src/usr.sbin/fdformat/fdformat.c