542849c09c
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:
|
||
---|---|---|
.. | ||
vhost_user.c | ||
vhost.h | ||
virtio_user_dev.c | ||
virtio_user_dev.h |