diff options
author | Jeff Cody <jcody@redhat.com> | 2017-08-07 08:38:19 -0400 |
---|---|---|
committer | Kevin Wolf <kwolf@redhat.com> | 2017-08-08 14:37:00 +0200 |
commit | 3f910692c287e1c611c00e763ebeb95ed0e017f8 (patch) | |
tree | 092b43cbc81611cb505a35dc64b9acfdf901de83 /hw/misc/mmio_interface.c | |
parent | 795be0621a643f3d103d112dfcbddee2992f5035 (diff) | |
download | qemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.zip qemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.tar.gz qemu-3f910692c287e1c611c00e763ebeb95ed0e017f8.tar.bz2 |
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 'hw/misc/mmio_interface.c')
0 files changed, 0 insertions, 0 deletions