diff options
author | Cédric Le Goater <clg@redhat.com> | 2023-10-26 09:06:35 +0200 |
---|---|---|
committer | Cédric Le Goater <clg@redhat.com> | 2023-11-03 09:20:31 +0100 |
commit | f8d6f3b16c37bd516a026e92a31dade5d761d3a6 (patch) | |
tree | 4c17f93b4d64d68d3aa72728889017623ac56c79 /include | |
parent | 721da0396cfa0a4859cefb57e32cc79d19d80f54 (diff) | |
download | qemu-f8d6f3b16c37bd516a026e92a31dade5d761d3a6.zip qemu-f8d6f3b16c37bd516a026e92a31dade5d761d3a6.tar.gz qemu-f8d6f3b16c37bd516a026e92a31dade5d761d3a6.tar.bz2 |
vfio/pci: Fix buffer overrun when writing the VF token
qemu_uuid_unparse() includes a trailing NUL when writing the uuid
string and the buffer size should be UUID_FMT_LEN + 1 bytes. Use the
recently added UUID_STR_LEN which defines the correct size.
Fixes: CID 1522913
Fixes: 2dca1b37a760 ("vfio/pci: add support for VF token")
Cc: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Alex Williamson <alex.williamson@redhat.com>
Reviewed-by: Juan Quintela <quintela@redhat.com>
Reviewed-by: "Denis V. Lunev" <den@openvz.org>
Signed-off-by: Cédric Le Goater <clg@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions