mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
Reject buf.len() that isn't sector_count * logical_sector_size in io::read/write (VhdxIoError::InvalidBufferLength), and reject buf.len() not a multiple of the sector size in Vhdx's Read/Write impl, before it's converted to a sector count/index. Signed-off-by: Alexander Lvov <alexander.lvov.git@gmail.com>