diff options
author | Kevin Wolf | 2014-03-26 13:06:06 +0100 |
---|---|---|
committer | Stefan Hajnoczi | 2014-04-01 15:22:35 +0200 |
commit | 6a83f8b5bec6f59e56cc49bd49e4c3f8f805d56f (patch) | |
tree | 4063692109e5f06ece922daad860641ec0fe8421 /tests/qemu-iotests/080.out | |
parent | qcow2: Fix L1 allocation size in qcow2_snapshot_load_tmp() (CVE-2014-0145) (diff) | |
download | qemu-6a83f8b5bec6f59e56cc49bd49e4c3f8f805d56f.tar.gz qemu-6a83f8b5bec6f59e56cc49bd49e4c3f8f805d56f.tar.xz qemu-6a83f8b5bec6f59e56cc49bd49e4c3f8f805d56f.zip |
qcow2: Check maximum L1 size in qcow2_snapshot_load_tmp() (CVE-2014-0143)
This avoids an unbounded allocation.
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.out | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/qemu-iotests/080.out b/tests/qemu-iotests/080.out index 4d84fbf64b..f7a943c7a4 100644 --- a/tests/qemu-iotests/080.out +++ b/tests/qemu-iotests/080.out @@ -74,4 +74,10 @@ wrote 512/512 bytes at offset 0 512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) qemu-img: Could not create snapshot 'test': -27 (File too large) qemu-img: Could not create snapshot 'test': -11 (Resource temporarily unavailable) + +== Invalid snapshot L1 table == +Formatting 'TEST_DIR/t.IMGFMT', fmt=IMGFMT size=67108864 +wrote 512/512 bytes at offset 0 +512 bytes, X ops; XX:XX:XX.X (XXX YYY/sec and XXX ops/sec) +qemu-img: Failed to load snapshot: Snapshot L1 table too large *** done |