mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-08-25 09:21:15 +00:00
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> |
||
---|---|---|
.. | ||
qcow_raw_file.rs | ||
qcow.rs | ||
raw_file.rs | ||
refcount.rs | ||
vec_cache.rs |