diff options
author | Fam Zheng <famz@redhat.com> | 2013-08-06 15:44:52 +0800 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2013-08-06 15:27:32 +0200 |
commit | f8ce04036e333aae480b1d06d969f6436652633d (patch) | |
tree | 983d5655f119ef0995ae0bdcd350b4fcb1ab4071 /tests/qemu-iotests/059.out | |
parent | 8aa1331c09a9b899f48d97f097bb49b7d458be1c (diff) | |
download | qemu-f8ce04036e333aae480b1d06d969f6436652633d.zip qemu-f8ce04036e333aae480b1d06d969f6436652633d.tar.gz qemu-f8ce04036e333aae480b1d06d969f6436652633d.tar.bz2 |
vmdk: check l2 table size when opening
header.num_gtes_per_gte determines size for L2 table. Check for too big
value before using it. Limit to 512M entries (2GB per one L2 table).
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 380ca3d..583955f 100644 --- a/tests/qemu-iotests/059.out +++ b/tests/qemu-iotests/059.out @@ -5,4 +5,10 @@ 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' +=== Testing too big L2 table size === + +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +L2 table size too big +qemu-io: can't open device TEST_DIR/t.vmdk +no file open, try 'help open' *** done |