mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2024-12-22 13:45:20 +00:00
1eb4ebe3d1
DescriptorChain::is_valid() wrongly used .checked_offset() to attempt to validate that the descriptor's data is in valid memory. This works in all cases except where the guest has placed the data at the very end of the guest memory as the offset + offset will be outside the range (as the combined offset will be the next byte and as such out of the guest memory). Instead use the function .check_range() takes an offset and a length to validate This fixes issues see with error messages featuring the DescriptorChainTooShort error. Fixes: #2424 Signed-off-by: Rob Bradford <robert.bradford@intel.com> |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |