Re: [Qemu-devel] [PATCH] qcow2: fix range check

2011-09-13 Thread Kevin Wolf
Am 13.09.2011 10:10, schrieb Frediano Ziglio: > 2011/9/12 Kevin Wolf : >> Am 10.09.2011 10:23, schrieb Frediano Ziglio: >>> QCowL2Meta::offset is not cluster aligned but only sector aligned >>> however nb_clusters count cluster from cluster start. >>> This fix range check. Note that old code have n

Re: [Qemu-devel] [PATCH] qcow2: fix range check

2011-09-13 Thread Frediano Ziglio
2011/9/12 Kevin Wolf : > Am 10.09.2011 10:23, schrieb Frediano Ziglio: >> QCowL2Meta::offset is not cluster aligned but only sector aligned >> however nb_clusters count cluster from cluster start. >> This fix range check. Note that old code have no corruption issues >> related to this check cause i

Re: [Qemu-devel] [PATCH] qcow2: fix range check

2011-09-12 Thread Kevin Wolf
Am 10.09.2011 10:23, schrieb Frediano Ziglio: > QCowL2Meta::offset is not cluster aligned but only sector aligned > however nb_clusters count cluster from cluster start. > This fix range check. Note that old code have no corruption issues > related to this check cause it only cause intersection to

[Qemu-devel] [PATCH] qcow2: fix range check

2011-09-10 Thread Frediano Ziglio
QCowL2Meta::offset is not cluster aligned but only sector aligned however nb_clusters count cluster from cluster start. This fix range check. Note that old code have no corruption issues related to this check cause it only cause intersection to occur when shouldn't. Signed-off-by: Frediano Ziglio