crosvm/qcow
Dylan Reid 93b0c02227 qcow: limit the size of a qcow file
There are many corner cases when handling sizes that approach u64::max.
Limit the files to 16TB.

BUG=979458
TEST=Added unittest to check large disks fail

Signed-off-by: Dylan Reid <dgreid@chromium.org>
Change-Id: I93a87c17267ae69102f8d46ced9dbea8c686d093
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/crosvm/+/1679892
Reviewed-by: Daniel Verkamp <dverkamp@chromium.org>
Tested-by: kokoro <noreply+kokoro@google.com>
2019-07-09 17:46:22 +00:00
..
src qcow: limit the size of a qcow file 2019-07-09 17:46:22 +00:00
Cargo.toml eliminate mut from non-mut references 2019-06-04 20:29:25 +00:00