qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 1/2] util/uuid: Add UUID_STR_LEN definition


From: Juan Quintela
Subject: Re: [PATCH 1/2] util/uuid: Add UUID_STR_LEN definition
Date: Wed, 25 Oct 2023 12:27:40 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.3 (gnu/linux)

Cédric Le Goater <clg@redhat.com> wrote:
> qemu_uuid_unparse() includes a trailing NUL when writing the uuid
> string and the buffer size should be UUID_FMT_LEN + 1 bytes. Add a
> define for this size and use it where required.
>
> Cc: Fam Zheng <fam@euphon.net>
> Signed-off-by: Cédric Le Goater <clg@redhat.com>
> ---
>  include/qemu/uuid.h              | 1 +
>  block/parallels-ext.c            | 2 +-
>  block/vdi.c                      | 2 +-
>  hw/core/qdev-properties-system.c | 2 +-
>  hw/hyperv/vmbus.c                | 4 ++--
>  migration/savevm.c               | 4 ++--
>  tests/unit/test-uuid.c           | 2 +-
>  util/uuid.c                      | 2 +-
>  8 files changed, 10 insertions(+), 9 deletions(-)
>
> diff --git a/include/qemu/uuid.h b/include/qemu/uuid.h

Reviewed-by: Juan Quintela <quintela@redhat.com>




reply via email to

[Prev in Thread] Current Thread [Next in Thread]