qemu-e2k/hw/i386/kvm
Markus Armbruster 82d0794565 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>
2014-02-26 10:30:03 -07:00
..
Makefile.objs hw: move hw/kvm/ to hw/i386/kvm 2013-04-08 18:13:16 +02:00
apic.c apic: QOM'ify APIC 2013-12-24 18:02:18 +01:00
clock.c sysbus: Set cannot_instantiate_with_device_add_yet 2013-12-23 00:27:22 +01:00
i8254.c qdev: Add enum property types to QAPI schema 2014-02-14 21:12:05 +01:00
i8259.c memory: add owner argument to initialization functions 2013-07-04 17:42:44 +02:00
ioapic.c ioapic: QOM'ify ioapic 2013-12-24 18:02:18 +01:00
pci-assign.c pci-assign: Fix potential read beyond buffer on -EBUSY 2014-02-26 10:30:03 -07:00