Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 25 Nov 2005 19:48:53 +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_cd9660 mount_cd9660.c
Message-ID:  <200511251948.jAPJmreE081345@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200511251948.jAPJmreE081345>