aboutsummaryrefslogtreecommitdiff
path: root/xen-common-stub.c
diff options
context:
space:
mode:
authorKlim Kireev <proffk@virtuozzo.mipt.ru>2016-07-27 20:08:20 +0300
committerStefan Hajnoczi <stefanha@redhat.com>2016-08-05 09:59:06 +0100
commit555a608c5d5dcc44e45a483ca09b449d8db519d1 (patch)
treebdab2e3440172f3bf5154f95d53db6e1b0eecb0e /xen-common-stub.c
parent42e0d60f1615ef63d16e41bb1668805560c37870 (diff)
block/parallels: check new image size
Before this patch incorrect image could be created via qemu-img (Example: qemu-img create -f parallels -o size=4096T hack.img), incorrect images cannot be used due to overflow in main image structure. This patch add check of size in image creation. After reading size it compare it with UINT32_MAX * cluster_size. Signed-off-by: Klim Kireev <proffk@virtuozzo.mipt.ru> Signed-off-by: Denis V. Lunev <den@openvz.org> Message-id: 1469639300-12155-1-git-send-email-den@openvz.org CC: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'xen-common-stub.c')
0 files changed, 0 insertions, 0 deletions