diff options
author | Fam Zheng <famz@redhat.com> | 2013-08-06 15:44:51 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-08-06 15:27:32 +0200 |
commit | 8aa1331c09a9b899f48d97f097bb49b7d458be1c (patch) | |
tree | de7c81ae02697f839077c7f997030493d1fbd6f6 /tests/qemu-iotests/059.out | |
parent | ca6cbb657d66a7beb70f9d91848c80d1a72b1674 (diff) |
vmdk: check granularity field in opening
Granularity is used to calculate the cluster size and allocate r/w
buffer. Check the value from image before using it, so we don't abort()
for unbounded memory allocation.
Signed-off-by: Fam Zheng <famz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/059.out')
-rw-r--r-- | tests/qemu-iotests/059.out | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/059.out b/tests/qemu-iotests/059.out index 4ca7f29722..380ca3d943 100644 --- a/tests/qemu-iotests/059.out +++ b/tests/qemu-iotests/059.out @@ -1,2 +1,8 @@ QA output created by 059 +=== Testing invalid granularity === + +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +invalid granularity, image may be corrupt +qemu-io: can't open device TEST_DIR/t.vmdk +no file open, try 'help open' *** done |