summaryrefslogtreecommitdiffstats
path: root/blockdev.c
diff options
context:
space:
mode:
authorMax Reitz2016-10-25 04:54:31 +0200
committerJeff Cody2016-11-15 04:47:34 +0100
commit4e504535c16dfa66290281e704384abfaca08673 (patch)
tree3ce9bca295a9ee1cc047efbcde53c48f82358bf0 /blockdev.c
parentblock/curl: Remember all sockets (diff)
downloadqemu-4e504535c16dfa66290281e704384abfaca08673.tar.gz
qemu-4e504535c16dfa66290281e704384abfaca08673.tar.xz
qemu-4e504535c16dfa66290281e704384abfaca08673.zip
block/curl: Do not wait for data beyond EOF
libcurl will only give us as much data as there is, not more. The block layer will deny requests beyond the end of file for us; but since this block driver is still using a sector-based interface, we can still get in trouble if the file size is not a multiple of 512. While we have already made sure not to attempt transfers beyond the end of the file, we are currently still trying to receive data from there if the original request exceeds the file size. This patch fixes this issue and invokes qemu_iovec_memset() on the iovec's tail. Cc: qemu-stable@nongnu.org Signed-off-by: Max Reitz <mreitz@redhat.com> Message-id: 20161025025431.24714-5-mreitz@redhat.com Signed-off-by: Jeff Cody <jcody@redhat.com>
Diffstat (limited to 'blockdev.c')
0 files changed, 0 insertions, 0 deletions