diff options
author | Frediano Ziglio | 2011-09-10 10:23:56 +0200 |
---|---|---|
committer | Kevin Wolf | 2011-09-12 15:17:22 +0200 |
commit | ee18e730234792b33e01d47939f4c30f29c9744e (patch) | |
tree | 8eac1cbd5b066ebf81744ac073e0840c85336d85 /slirp/tcp_input.c | |
parent | qcow2: align cluster_data to block to improve performance using O_DIRECT (diff) | |
download | qemu-ee18e730234792b33e01d47939f4c30f29c9744e.tar.gz qemu-ee18e730234792b33e01d47939f4c30f29c9744e.tar.xz qemu-ee18e730234792b33e01d47939f4c30f29c9744e.zip |
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 'slirp/tcp_input.c')
0 files changed, 0 insertions, 0 deletions