Skip to contentSkip to conversation

Is the use of bdrv_getlength() in vhdx*.c kosher?

Qemu-devel Markus Armbruster 2 participants 2 messages Aug 4, 2017

lore
Share & tools
lore
#0 lore raw

bdrv_getlength() can fail. There are several calls in vhdx*.c that don't seem to check. Bug or not?

#1 lore raw
Quoted 2 lines · Markus Armbruster

bdrv_getlength() can fail. There are several calls in vhdx*.c that don't seem to check. Bug or not?

Most definitely a bug. Shall I queue up some patches, or do you already have some?