On 8/1/25 12:31, Akihiko Odaki wrote:
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.od...@daynix.com>
---
  hw/i386/kvm/xen_xenstore.c | 4 ++++
  1 file changed, 4 insertions(+)

Reviewed-by: Philippe Mathieu-Daudé <phi...@linaro.org>


Reply via email to