]> git.karo-electronics.de Git - karo-tx-linux.git/commit
kvm tools: Use safe string handling functions
authorCyrill Gorcunov <gorcunov@openvz.org>
Wed, 6 Jun 2012 08:57:00 +0000 (12:57 +0400)
committerPekka Enberg <penberg@kernel.org>
Wed, 6 Jun 2012 20:15:34 +0000 (23:15 +0300)
commit41584b12c0531a52a72f6591c8c7ce214916883b
tree68447c94647fb39ebcda6a40fc45db4fa445529d
parentf0888c89262ee3942f002d8b594a264071b17c77
kvm tools: Use safe string handling functions

Use str[n|l] functions to make sure destination is
not overflowed.

Seems socket path generation should be moved into
a separate helper, but it's for another patch.

Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
tools/kvm/include/kvm/strbuf.h
tools/kvm/kvm.c
tools/kvm/util/strbuf.c