Home
last modified time | relevance | path

Searched hist:f06ee3d4 (Results 1 – 2 of 2) sorted by relevance

/qemu/block/
H A Dqed.hf06ee3d4 Fri Jul 04 15:11:28 GMT 2014 Kevin Wolf <kwolf@redhat.com> qed: Make qiov match request size until backing file EOF

If a QED image has a shorter backing file and a read request to
unallocated clusters goes across EOF of the backing file, the backing
file sees a shortened request and the rest is filled with zeros.
However, the original too long qiov was used with the shortened request.

This patch makes the qiov size match the request size, avoiding a
potential buffer overflow in raw-posix.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>
H A Dqed.cf06ee3d4 Fri Jul 04 15:11:28 GMT 2014 Kevin Wolf <kwolf@redhat.com> qed: Make qiov match request size until backing file EOF

If a QED image has a shorter backing file and a read request to
unallocated clusters goes across EOF of the backing file, the backing
file sees a shortened request and the rest is filled with zeros.
However, the original too long qiov was used with the shortened request.

This patch makes the qiov size match the request size, avoiding a
potential buffer overflow in raw-posix.

Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Reviewed-by: Eric Blake <eblake@redhat.com>