From owner-cvs-src@FreeBSD.ORG Fri Nov 25 19:48:53 2005 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 C59EC16A420; Fri, 25 Nov 2005 19:48:53 +0000 (GMT) (envelope-from avatar@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id 44EC143D62; Fri, 25 Nov 2005 19:48:53 +0000 (GMT) (envelope-from avatar@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 jAPJmrP2081346; Fri, 25 Nov 2005 19:48:53 GMT (envelope-from avatar@repoman.freebsd.org) Received: (from avatar@localhost) by repoman.freebsd.org (8.13.1/8.13.1/Submit) id jAPJmreE081345; Fri, 25 Nov 2005 19:48:53 GMT (envelope-from avatar) Message-Id: <200511251948.jAPJmreE081345@repoman.freebsd.org> From: Tai-hwa Liang Date: Fri, 25 Nov 2005 19:48:53 +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/sbin/mount_cd9660 mount_cd9660.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: Fri, 25 Nov 2005 19:48:53 -0000 avatar 2005-11-25 19:48:53 UTC FreeBSD src repository Modified files: sbin/mount_cd9660 mount_cd9660.c Log: It turns out that set_charset() invokes build_iovec() which modifies iov address internally through realloc(3). However, since the function parameter wasn't designed to allow the modified iov being passed back to the caller, we end up feeding iov with several corrupted entries(depends on how many arguments were pushed into iovec before set_charset()) to nmount(2). This commit fixes this regression introduced in rev1.31 such that mount_cd9660(8) with code page conversion option(-C) enabled works again. Reviewed by: rodrigc Revision Changes Path 1.32 +5 -5 src/sbin/mount_cd9660/mount_cd9660.c