[PATCH 04/15] virBitmapToString: Properly handle empty bitmaps

Ján Tomko jtomko at redhat.com
Fri Oct 2 07:52:44 UTC 2020

On a Friday in 2020, Peter Krempa wrote:
>virBitmapNewEmpty() can create a bitmap with 0 lenght. With such a


>bitmap virBitmapToString will return NULL rather than an empty string.
>Initialize the buffer to avoid that.
>Signed-off-by: Peter Krempa <pkrempa at redhat.com>
> src/util/virbitmap.c | 3 +++
> 1 file changed, 3 insertions(+)

Reviewed-by: Ján Tomko <jtomko at redhat.com>

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <http://listman.redhat.com/archives/libvir-list/attachments/20201002/5b7aeda7/attachment-0001.sig>

More information about the libvir-list mailing list