summaryrefslogtreecommitdiff
path: root/qemu-io-cmds.c
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-02-26 10:28:36 -0700
committerAlex Williamson <alex.williamson@redhat.com>2014-02-26 10:28:36 -0700
commit13665a2d2f675341e73618fcd7f9d36b6c68b509 (patch)
tree18b0db6388a85905cb0075c45e68c42331c48264 /qemu-io-cmds.c
parentd5001cf787ad0514839a81d0f2e771e01e076e21 (diff)
downloadqemu-13665a2d2f675341e73618fcd7f9d36b6c68b509.tar.gz
vfio: Fix overrun after readlink() fills buffer completely
readlink() returns the number of bytes written to the buffer, and it doesn't write a terminating null byte. vfio_init() writes it itself. Overruns the buffer when readlink() filled it completely. Fix by treating readlink() filling the buffer completely as error, like we do in pci-assign.c's assign_failed_examine(). Spotted by Coverity. Signed-off-by: Markus Armbruster <armbru@redhat.com> Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'qemu-io-cmds.c')
0 files changed, 0 insertions, 0 deletions