aboutsummaryrefslogtreecommitdiff
path: root/tests/qemu-iotests/080.out
diff options
context:
space:
mode:
authorKevin Wolf <kwolf@redhat.com>2014-03-26 13:05:43 +0100
committerStefan Hajnoczi <stefanha@redhat.com>2014-04-01 14:19:09 +0200
commit5dab2faddc8eaa1fb1abdbe2f502001fc13a1b21 (patch)
tree675dd5f26040c117c2f2fb040b5ea9dfb623ecf6 /tests/qemu-iotests/080.out
parenta1b3955c9415b1e767c130a2f59fee6aa28e575b (diff)
downloadqemu-5dab2faddc8eaa1fb1abdbe2f502001fc13a1b21.zip
qemu-5dab2faddc8eaa1fb1abdbe2f502001fc13a1b21.tar.gz
qemu-5dab2faddc8eaa1fb1abdbe2f502001fc13a1b21.tar.bz2
qcow2: Check refcount table size (CVE-2014-0144)
Limit the in-memory reference count table size to 8 MB, it's enough in practice. This fixes an unbounded allocation as well as a buffer overflow in qcow2_refcount_init(). Signed-off-by: Kevin Wolf <kwolf@redhat.com> Reviewed-by: Max Reitz <mreitz@redhat.com> Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Diffstat (limited to 'tests/qemu-iotests/080.out')
-rw-r--r--tests/qemu-iotests/080.out7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/qemu-iotests/080.out b/tests/qemu-iotests/080.out
index 48c40aa..6fef6d9 100644
--- a/tests/qemu-iotests/080.out
+++ b/tests/qemu-iotests/080.out
@@ -13,4 +13,11 @@ qemu-io: can't open device TEST_DIR/t.qcow2: Invalid backing file offset
no file open, try 'help open'
qemu-io: can't open device TEST_DIR/t.qcow2: Header extension too large
no file open, try 'help open'
+
+== Huge refcount table size ==
+Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864
+qemu-io: can't open device TEST_DIR/t.qcow2: Reference count table too large
+no file open, try 'help open'
+qemu-io: can't open device TEST_DIR/t.qcow2: Reference count table too large
+no file open, try 'help open'
*** done