summaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorMarkus Armbruster2014-02-26 18:30:03 +0100
committerAlex Williamson2014-02-26 18:30:03 +0100
commit82d07945652f16078b172d2bd46659e8f5f30d8e (patch)
tree72077ca349fb9c721802132aa96d9480fea7333b /scripts
parentvfio: Fix overrun after readlink() fills buffer completely (diff)
downloadqemu-82d07945652f16078b172d2bd46659e8f5f30d8e.tar.gz
qemu-82d07945652f16078b172d2bd46659e8f5f30d8e.tar.xz
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')
0 files changed, 0 insertions, 0 deletions