numam-dpdk/drivers/net/virtio/virtio_user
Jianfeng Tan 542849c09c net/virtio-user: fix string unterminated
When use strcpy() to copy string with length exceeding the last
parameter of strcpy(), it may lead to the destination string
unterminated.

We replaced strncpy with snprintf to make sure it's NULL terminated.

Coverity issue: 127476
Fixes: ce2eabdd43 ("net/virtio-user: add virtual device")

Signed-off-by: Jianfeng Tan <jianfeng.tan@intel.com>
Acked-by: Yuanhan Liu <yuanhan.liu@linux.intel.com>
2016-07-05 13:30:25 +02:00
..
vhost_user.c net/virtio-user: fix string overflow 2016-07-05 13:30:24 +02:00
vhost.h net/virtio-user: fix build with icc 2016-06-30 07:46:29 +02:00
virtio_user_dev.c net/virtio-user: fix string unterminated 2016-07-05 13:30:25 +02:00
virtio_user_dev.h net/virtio-user: add multiple queues in device emulation 2016-06-22 09:47:12 +02:00