diff options
author | Frediano Ziglio <freddy77@gmail.com> | 2011-09-10 10:23:56 +0200 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2011-09-12 15:17:22 +0200 |
commit | ee18e730234792b33e01d47939f4c30f29c9744e (patch) | |
tree | 8eac1cbd5b066ebf81744ac073e0840c85336d85 /block.c | |
parent | dea43a65d6b09c43cc7df94f76bb7522016318f4 (diff) |
qcow2: fix range check
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 <freddy77@gmail.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block.c')
0 files changed, 0 insertions, 0 deletions