|
From: | Markus Armbruster |
Subject: | Re: [Qemu-block] Is the use of bdrv_getlength() in qcow.c kosher? |
Date: | Fri, 04 Aug 2017 14:45:24 +0200 |
User-agent: | Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) |
Markus Armbruster <address@hidden> writes: > bdrv_getlength() can fail. The uses in qcow.c don't check. Is that > safe? There's another one in qcow2_co_pwritev_compressed(). Yet another one in dump_refcounts(). While we're talking: the one in qcow2_measure() assigns to a variable of type ssize_t. Should be int64_t.
[Prev in Thread] | Current Thread | [Next in Thread] |