cloud-hypervisor/qcow/src
Dylan Reid 35a3b47554 qcow: Calculate the max refcounts as a u64
u32's get multiplied together and can overflow. A usize was being
returned, make everything a u64 to make sure it fits.

Change-Id: I87071d294f4e62247c9ae72244db059a7b528b62
Signed-off-by: Dylan Reid <dgreid@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1651459
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Reviewed-by: Zach Reizner <zachr@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
(cherry picked from crosvm commit 21c941786ea0cb72114f3e9c7c940471664862b5)
Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2019-08-02 12:58:04 +02:00
..
qcow_raw_file.rs virtio: Enable qcow support for virtio-block 2019-05-13 22:08:29 +01:00
qcow.rs qcow: Calculate the max refcounts as a u64 2019-08-02 12:58:04 +02:00
refcount.rs virtio: Enable qcow support for virtio-block 2019-05-13 22:08:29 +01:00
vec_cache.rs qcow: Make unit tests pass 2019-07-16 17:09:05 +02:00