[Libguestfs] [PATCH 2/7] lib: Use vk->len for string conversion

Richard W.M. Jones rjones at redhat.com
Mon Jan 13 13:20:03 UTC 2014


On Mon, Jan 13, 2014 at 01:17:52PM +0000, Richard W.M. Jones wrote:
> Is there a reason for this patch?  It seems like just an optimization.

OK, I see that the reason is to avoid calling _hivex_utf8_strlen which
would fail for the name containing a \0 character.  However I still
think we need to keep that check.

Rich.

-- 
Richard Jones, Virtualization Group, Red Hat http://people.redhat.com/~rjones
virt-df lists disk usage of guests without needing to install any
software inside the virtual machine.  Supports Linux and Windows.
http://people.redhat.com/~rjones/virt-df/




More information about the Libguestfs mailing list