summary refs log tree commit diff stats
path: root/scripts/qapi-types.py
diff options
context:
space:
mode:
authorMarkus Armbruster <armbru@redhat.com>2014-02-26 10:30:03 -0700
committerAlex Williamson <alex.williamson@redhat.com>2014-02-26 10:30:03 -0700
commit82d07945652f16078b172d2bd46659e8f5f30d8e (patch)
tree72077ca349fb9c721802132aa96d9480fea7333b /scripts/qapi-types.py
parent13665a2d2f675341e73618fcd7f9d36b6c68b509 (diff)
downloadfocaccia-qemu-82d07945652f16078b172d2bd46659e8f5f30d8e.tar.gz
focaccia-qemu-82d07945652f16078b172d2bd46659e8f5f30d8e.zip
pci-assign: Fix potential read beyond buffer on -EBUSY
readlink() doesn't write a terminating null byte.
assign_failed_examine() passes the unterminated string to strrchr().
Oops.  Terminate it.

Spotted by Coverity.

Signed-off-by: Markus Armbruster <armbru@redhat.com>
Reviewed-by: Peter Maydell <peter.maydell@linaro.org>
Signed-off-by: Alex Williamson <alex.williamson@redhat.com>
Diffstat (limited to 'scripts/qapi-types.py')
0 files changed, 0 insertions, 0 deletions