Date: Fri, 25 Nov 2005 19:55:14 +0000 (UTC) From: Tai-hwa Liang <avatar@FreeBSD.org> To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org Subject: cvs commit: src/sbin/mount_msdosfs mount_msdosfs.c Message-ID: <200511251955.jAPJtEqC081673@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
avatar 2005-11-25 19:55:14 UTC FreeBSD src repository Modified files: sbin/mount_msdosfs mount_msdosfs.c Log: It turns out that set_charset() invokes build_iovec_argf() 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 ended up feeding iov with several corrupted entries(this depends on how many arguments were pushed into iovec before set_charset()) to nmount(2). This commit fixes this regression introduced in rev1.37 such that mount_msdosfs(8) with code page conversion option(-W,-D) enabled works again. Reviewed by: rodrigc Revision Changes Path 1.40 +6 -6 src/sbin/mount_msdosfs/mount_msdosfs.c
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511251955.jAPJtEqC081673>