Re: [Qemu-devel] [PATCH 1/2] block/vhdx: check error return of bdrv_getlength()

2017-08-07 Thread Eric Blake
On 08/06/2017 10:08 PM, Jeff Cody wrote: > 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. > >

[Qemu-devel] [PATCH 1/2] block/vhdx: check error return of bdrv_getlength()

2017-08-06 Thread Jeff Cody
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. Reported-by: Markus Armbruster