]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: Use virStrcpyStatic() to avoid truncation
authorAndrea Bolognani <abologna@redhat.com>
Tue, 17 Jul 2018 08:21:50 +0000 (10:21 +0200)
committerAndrea Bolognani <abologna@redhat.com>
Mon, 23 Jul 2018 12:27:13 +0000 (14:27 +0200)
commitc9d5f2d989d67fa7e63cd875d543591c68b4062b
tree2a3f4914dc7eefcf2d376f143202147cc5fd8c8e
parentf508a65a21fb2a3ea3619c7eddbb85633279995a
src: Use virStrcpyStatic() to avoid truncation

The way virStrncpy() is called here will never result in
buffer overflow, but it won't prevent or detect truncation
either, despite what the error message might suggest. Use
virStrcpyStatic(), which does all of the above, instead.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
src/esx/esx_driver.c
src/hyperv/hyperv_driver.c