On Wed, Jul 27, 2016 at 08:08:20PM +0300, Denis V. Lunev wrote: > From: Klim Kireev <pro...@virtuozzo.mipt.com> > > 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 <pro...@virtuozzo.mipt.com> > Signed-off-by: Denis V. Lunev <d...@openvz.org> > CC: Stefan Hajnoczi <stefa...@redhat.com> > --- > changes from v1: > - fixed from: to be virtuozzo.mipt.com to match Signed-off-by > > block/parallels.c | 5 +++++ > 1 file changed, 5 insertions(+)
Thanks, applied to my block tree: https://github.com/stefanha/qemu/commits/block Stefan
signature.asc
Description: PGP signature