cloud-hypervisor/qcow
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
..
src qcow: check return value of alloc_zeroed and add safety comments 2021-11-25 10:32:07 +01:00
Cargo.toml build: bump libc from 0.2.107 to 0.2.108 2021-11-23 00:05:13 +00:00