qemu/hw/i386/kvm
Akihiko Odaki b6014c5089 hw/xen: Check if len is 0 before memcpy()
data->data can be NULL when len is 0. Strictly speaking, the behavior
of memcpy() in such a scenario is undefined so UBSan complaints.

Satisfy UBSan by checking if len is 0 before memcpy().

Signed-off-by: Akihiko Odaki <akihiko.odaki@daynix.com>
Reviewed-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
2025-01-09 10:43:13 +00:00
..
apic.c hw/i386: Mark devices as little-endian 2024-12-31 21:21:34 +01:00
clock.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
clock.h hw/i386: Rename 'hw/kvm/clock.h' -> 'hw/i386/kvm/clock.h' 2023-08-31 19:47:43 +02:00
i8254.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
i8259.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
ioapic.c Accel & Exec patch queue 2024-12-21 11:07:00 -05:00
meson.build hw/xen: add support for Xen primary console in emulated mode 2023-11-07 08:54:20 +00:00
trace-events hw/xen: add support for Xen primary console in emulated mode 2023-11-07 08:54:20 +00:00
trace.h hw/xen: Implement emulated PIRQ hypercall support 2023-03-01 09:09:01 +00:00
xen-stubs.c hw/xen: add support for Xen primary console in emulated mode 2023-11-07 08:54:20 +00:00
xen_evtchn.c hw/i386/pc: Fix level interrupt sharing for Xen event channel GSI 2025-01-09 10:40:11 +00:00
xen_evtchn.h hw/i386/pc: Fix level interrupt sharing for Xen event channel GSI 2025-01-09 10:40:11 +00:00
xen_gnttab.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
xen_gnttab.h hw/xen: Implement soft reset for emulated gnttab 2023-03-07 17:04:30 +00:00
xen_overlay.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
xen_overlay.h hw/xen: Support mapping grant frames 2023-03-01 09:07:52 +00:00
xen_primary_console.c include: Rename sysemu/ -> system/ 2024-12-20 17:44:56 +01:00
xen_primary_console.h hw/xen: add support for Xen primary console in emulated mode 2023-11-07 08:54:20 +00:00
xen_xenstore.c hw/xen: Check if len is 0 before memcpy() 2025-01-09 10:43:13 +00:00
xen_xenstore.h hw/xen: Add xen_xenstore device for xenstore emulation 2023-03-01 09:08:26 +00:00
xenstore_impl.c i386: spelling fixes 2023-09-20 07:54:34 +03:00
xenstore_impl.h hw/xen: Add xenstore operations to allow redirection to internal emulation 2023-03-07 17:04:30 +00:00