mirror_qemu/subprojects
Xie Yongji d9cf16c0be libvduse: Replace strcpy() with strncpy()
Coverity reported a string overflow issue since we copied
"name" to "dev_config->name" without checking the length.
This should be a false positive since we already checked
the length of "name" in vduse_name_is_invalid(). But anyway,
let's replace strcpy() with strncpy() (as a general library,
we'd like to minimize dependencies on other libraries, so we
didn't use g_strlcpy() here) to fix the coverity complaint.

Fixes: Coverity CID 1490224
Signed-off-by: Xie Yongji <xieyongji@bytedance.com>
Reviewed-by: Markus Armbruster <armbru@redhat.com>
Message-Id: <20220706095624.328-3-xieyongji@bytedance.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2022-08-02 11:01:41 +02:00
..
libvduse libvduse: Replace strcpy() with strncpy() 2022-08-02 11:01:41 +02:00
libvfio-user@0b28d20557 vfio-user: build library 2022-06-15 16:42:33 +01:00
libvhost-user libvhost-user: Fix VHOST_USER_ADD_MEM_REG reply 2022-06-27 18:53:18 -04:00