qemu/tests/qemu-iotests
Kevin Wolf 2ebafc854d qcow2: Fix header extension size check
After reading the extension header, offset is incremented, but not
checked against end_offset any more. This way an integer overflow could
happen when checking whether the extension end is within the allowed
range, effectively disabling the check.

This patch adds the missing check and a test case for it.

Cc: qemu-stable@nongnu.org
Reported-by: Max Reitz <mreitz@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Max Reitz <mreitz@redhat.com>
Message-id: 1416935562-7760-2-git-send-email-kwolf@redhat.com
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2014-12-10 10:31:13 +01:00
..
006
016
2014-12-10 10:31:12 +01:00
022
031
2014-06-27 20:00:00 +02:00
2013-08-30 15:48:43 +02:00
039
2014-06-27 20:00:00 +02:00
2014-10-23 15:34:01 +02:00
044
048
2014-12-10 10:31:12 +01:00
054
2014-06-27 20:00:00 +02:00
058
2014-12-10 10:31:12 +01:00
2014-10-23 15:34:01 +02:00
061
2014-11-03 11:41:49 +00:00
2014-11-03 11:41:49 +00:00
062
2013-08-30 15:28:52 +02:00
067
2014-12-10 10:25:30 +01:00
069
2014-09-22 11:39:45 +01:00
070
2014-10-04 19:18:17 +01:00
2014-10-04 19:18:17 +01:00
071
2014-12-10 10:31:12 +01:00
2014-12-10 10:31:12 +01:00
072
2014-09-22 11:39:45 +01:00
2014-01-22 12:07:18 +01:00
077
2014-12-10 10:31:12 +01:00
2014-01-24 17:40:25 +01:00
2014-04-11 13:59:49 +02:00
080
2014-12-10 10:31:13 +01:00
2014-12-10 10:31:13 +01:00
081
2014-12-10 10:31:12 +01:00
2014-12-10 10:31:12 +01:00
083
2014-06-27 20:00:01 +02:00
084
2014-11-09 23:39:50 +01:00
089
2014-12-10 10:31:12 +01:00
095
2014-10-04 19:18:17 +01:00
2014-10-04 19:18:17 +01:00
100
2014-08-29 14:10:15 +01:00
107
2014-11-03 11:41:48 +00:00
2014-06-27 20:00:00 +02:00
2014-12-10 10:31:12 +01:00

=== This is the QEMU I/O test suite ===

* Intro

This package contains a simple test suite for the I/O layer of qemu.
It does not require a guest, but only the qemu, qemu-img and qemu-io
binaries.  This does limit it to exercise the low-level I/O path only
but no actual block drivers like ide, scsi or virtio.

* Usage

Just run ./check to run all tests for the raw image format, or ./check
-qcow2 to test the qcow2 image format.  The output of ./check -h explains
additional options to test further image formats or I/O methods.

* Feedback and patches

Please send improvements to the test suite, general feedback or just
reports of failing tests cases to qemu-devel@savannah.nongnu.org.