]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
It turns out that set_charset() invokes build_iovec() which modifies
authorTai-hwa Liang <avatar@FreeBSD.org>
Fri, 25 Nov 2005 19:48:53 +0000 (19:48 +0000)
committerTai-hwa Liang <avatar@FreeBSD.org>
Fri, 25 Nov 2005 19:48:53 +0000 (19:48 +0000)
commit4acc9672b54462c12a5beacf13b37cba85d8606c
tree0ea8d280e13916fd2f1f746e5212c3044d31b015
parent38e00d27eac9f767acd06774ce1be184d80ad522
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
sbin/mount_cd9660/mount_cd9660.c