]> git.proxmox.com Git - mirror_qemu.git/commit
vhdx: Check for 4 GB maximum log size on creation
authorKevin Wolf <kwolf@redhat.com>
Tue, 20 Mar 2018 17:24:54 +0000 (18:24 +0100)
committerKevin Wolf <kwolf@redhat.com>
Mon, 26 Mar 2018 10:17:43 +0000 (12:17 +0200)
commit6f16f7c5625fde5634cc4c40857b66cdee09dc17
treeed4ca297d18f6d86757d10dff21ab16f064f0d76
parent0fcc38e7d0fb102ab9e9a9734459bdff89d3121f
vhdx: Check for 4 GB maximum log size on creation

It's unclear what the real maximum is, but we use an uint32_t to store
the log size in vhdx_co_create(), so we should check that the given
value fits in 32 bits.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
Reviewed-by: Jeff Cody <jcody@redhat.com>
block/vhdx.c