summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorJeff Cody2017-08-07 14:38:19 +0200
committerKevin Wolf2017-08-08 14:37:00 +0200
commit3f910692c287e1c611c00e763ebeb95ed0e017f8 (patch)
tree092b43cbc81611cb505a35dc64b9acfdf901de83 /include
parentquorum: Set sectors-count to 0 when reporting a flush error (diff)
downloadqemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.tar.gz
qemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.tar.xz
qemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.zip
block/vhdx: check error return of bdrv_getlength()
Calls to bdrv_getlength() were not checking for error. In vhdx.c, this can lead to truncating an image file, so it is a definite bug. In vhdx-log.c, the path for improper behavior is less clear, but it is best to check in any case. Some minor code movement of the log_guid intialization, as well. Reported-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Eric Blake <eblake@redhat.com> Signed-off-by: Jeff Cody <jcody@redhat.com> Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions