numam-dpdk/lib/librte_vhost
Daniel Mrzyglod a5e20775a7 vhost: fix name not null terminated
Fix issue reported by Coverity.
Coverity ID 124556

If the buffer is treated as a null terminated string in later operations,
a buffer overflow or over-read may occur.

In vhost_set_ifname: The string buffer may not have a null terminator if
the source string's length is equal to the buffer size

Fixes: 54292e9520 ("vhost: support ifname for vhost-user")

Signed-off-by: Daniel Mrzyglod <danielx.t.mrzyglod@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-05-10 20:25:30 +02:00
..
eventfd_link vhost: fix kernel module insertion 2015-11-24 21:34:11 +01:00
libvirt vhost: fix qemu shutdown 2015-09-24 14:57:36 +02:00
vhost_cuse vhost: remove device operations pointers 2016-02-19 19:33:31 +01:00
vhost_user vhost: fix default value of kickfd and callfd 2016-03-15 00:20:29 +01:00
Makefile mk: fix vhost shared library dependencies 2016-03-13 20:27:26 +01:00
rte_vhost_version.map vhost: cleanup unix socket 2015-06-30 17:49:08 +02:00
rte_virtio_net.h vhost: fix default value of kickfd and callfd 2016-03-15 00:20:29 +01:00
vhost_rxtx.c vhost: use SMP barriers instead of compiler ones 2016-03-31 17:09:23 +02:00
vhost-net.h vhost: remove device operations pointers 2016-02-19 19:33:31 +01:00
virtio-net.c vhost: fix name not null terminated 2016-05-10 20:25:30 +02:00
virtio-net.h vhost: implement cuse memory table 2015-02-24 01:38:14 +01:00