aboutsummaryrefslogtreecommitdiff
path: root/subprojects/libvduse/include
diff options
context:
space:
mode:
authorXie Yongji <xieyongji@bytedance.com>2022-07-06 17:56:23 +0800
committerKevin Wolf <kwolf@redhat.com>2022-08-02 11:01:41 +0200
commitd9cf16c0bee5b97fb76e0e1ad915a22bec0031b9 (patch)
treea176f9a5f8f14ef9a7308af0be13a2e1c1c90e85 /subprojects/libvduse/include
parente7156ff7cb3ea79c5c859168484a216c431bdd5a (diff)
downloadqemu-d9cf16c0bee5b97fb76e0e1ad915a22bec0031b9.zip
qemu-d9cf16c0bee5b97fb76e0e1ad915a22bec0031b9.tar.gz
qemu-d9cf16c0bee5b97fb76e0e1ad915a22bec0031b9.tar.bz2
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>
Diffstat (limited to 'subprojects/libvduse/include')
0 files changed, 0 insertions, 0 deletions