summaryrefslogtreecommitdiff
path: root/qdev-monitor.c
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 /qdev-monitor.c
parent13665a2d2f675341e73618fcd7f9d36b6c68b509 (diff)
downloadqemu-82d07945652f16078b172d2bd46659e8f5f30d8e.tar.gz
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 'qdev-monitor.c')
0 files changed, 0 insertions, 0 deletions