Re: [libvirt] [PATCH 1/3] qemu: block: Use correct type when creating image size JSON entries

2019-08-30 Thread Ján Tomko
On Fri, Aug 30, 2019 at 04:45:03PM +0200, Peter Krempa wrote: The 'u' modifier creates a unsigned int JSON attribute but the disk size an unsigned and capacity fields are unsigned long long. If the size of the created image would be more than 4GiB we'd overflow and create sub-4G image.

[libvirt] [PATCH 1/3] qemu: block: Use correct type when creating image size JSON entries

2019-08-30 Thread Peter Krempa
The 'u' modifier creates a unsigned int JSON attribute but the disk size and capacity fields are unsigned long long. If the size of the created image would be more than 4GiB we'd overflow and create sub-4G image. Signed-off-by: Peter Krempa --- src/qemu/qemu_block.c | 12 ++-- 1 file