cloud-hypervisor/qcow/src
Wei Liu 9b9015d907 qcow: check return value of alloc_zeroed and add safety comments
Function alloc_zeroed can fail. Check its return in read and write
functions. Its return value in is_valid_alignment is not checked because
handling error in that case does not give us much benefit. Instead, an
assertion is added.

Add safety comments to all `unsafe`s.

Signed-off-by: Wei Liu <liuwe@microsoft.com>
2021-11-25 10:32:07 +01:00
..
qcow_raw_file.rs qcow, virtio-devices: Break cyclic dependency 2020-07-10 17:47:31 +02:00
qcow.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
raw_file.rs qcow: check return value of alloc_zeroed and add safety comments 2021-11-25 10:32:07 +01:00
refcount.rs clippy: Address the issue 'needless-borrow' 2021-06-24 08:55:43 +02:00
vec_cache.rs arch, qcow: Fix 1.42.0 clippy warnings 2020-03-13 12:26:15 +00:00