]> git.proxmox.com Git - qemu.git/commit
qcow2: Correct endianness in overlap check
authorMax Reitz <mreitz@redhat.com>
Mon, 30 Sep 2013 06:59:28 +0000 (08:59 +0200)
committerStefan Hajnoczi <stefanha@redhat.com>
Wed, 2 Oct 2013 09:06:35 +0000 (11:06 +0200)
commit1e242b5544a48bc43eca9c637dc91ec06bcf3a31
tree8dde4756a52a2b399902f462b3fef181f7b043b2
parenta684f3cf9b9b9c3cb82be87aafc463de8974610c
qcow2: Correct endianness in overlap check

If an inactive L1 table is loaded from disk, its entries are in big
endian and have to be converted to host byte order before using them.

Signed-off-by: Max Reitz <mreitz@redhat.com>
Reviewed-by: Kevin Wolf <kwolf@redhat.com>
Signed-off-by: Stefan Hajnoczi <stefanha@redhat.com>
block/qcow2-refcount.c