Peter Lieven 78a52ad5ac qcow2: fix possible corruption when reading multiple clusters
if multiple sectors spanning multiple clusters are read the
function count_contiguous_clusters should ensure that the
cluster type should not change between the clusters.

Especially the for-loop should break when we have one
or more normal clusters followed by a compressed cluster.

Unfortunately the wrong macro was used in the mask to
compare the flags.

This was discovered while debugging a data corruption
issue when converting a compressed qcow2 image to raw.
qemu-img reads 2MB chunks which span multiple clusters.

CC: qemu-stable@nongnu.org
Signed-off-by: Peter Lieven <pl@kamp.de>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
2013-11-14 13:09:07 +01:00
2013-04-18 13:50:53 +02:00
2013-07-09 13:38:56 -05:00
2013-11-13 11:48:35 -08:00
2013-08-07 12:48:00 -05:00
2013-10-31 16:58:32 +01:00
2013-10-25 23:25:45 +02:00
2013-10-12 16:19:20 -07:00
2013-05-03 13:58:09 +02:00
2012-09-07 09:02:44 +03:00
2013-10-26 13:01:57 +04:00
2013-10-11 09:34:56 -07:00
2013-09-05 09:40:31 -05:00
2013-09-30 17:15:01 -05:00
2013-10-11 10:52:54 +02:00
2013-10-11 09:34:56 -07:00
2008-10-12 17:54:42 +00:00
2013-11-06 21:47:05 -08:00
2013-11-13 11:48:35 -08:00
2013-11-04 15:39:41 +02:00
2013-07-23 02:41:31 +02:00
2013-10-17 10:10:14 +02:00
2013-02-21 16:17:31 -06:00
2013-08-12 09:15:12 -05:00
2013-09-03 12:25:55 +02:00
2013-10-31 16:58:32 +01:00
2013-09-06 15:25:08 +02:00
2013-05-18 16:35:12 +04:00
2013-07-19 12:52:03 +04:00
2013-05-01 13:06:07 +02:00
2013-09-02 09:08:29 -07:00
2013-10-11 09:34:56 -07:00
2013-09-25 21:23:05 +02:00
2013-11-06 21:49:39 -08:00
2013-10-11 09:34:56 -07:00
2013-04-08 18:13:10 +02:00

Read the documentation in qemu-doc.html or on http://wiki.qemu-project.org

- QEMU team
Description
No description provided
Readme 418 MiB
Languages
Rust 68.8%
C 26.3%
C++ 3%
Python 0.9%
Shell 0.5%
Other 0.3%