cloud-hypervisor/vhdx/src
Rob Bradford e300c3dcf7 vhdx: Avoid unwrap() of invalid header
In the original code:

If the first header was invalid and the second header had the same
sequence number (zero) then the invalid first header would be returned.

The new code is more Rust idiomatic and avoids this situation.

See: https://bugs.chromium.org/p/oss-fuzz/issues/detail?id=48858

Signed-off-by: Rob Bradford <robert.bradford@intel.com>
2022-07-08 10:19:11 +01:00
..
lib.rs build: bump uuid from 0.8.2 to 1.0.0 2022-04-20 09:41:22 +00:00
vhdx_bat.rs vhdx: Fixed and dynamic VHDx block device implementation 2021-08-19 11:43:19 +02:00
vhdx_header.rs vhdx: Avoid unwrap() of invalid header 2022-07-08 10:19:11 +01:00
vhdx_io.rs vhdx: Fixed and dynamic VHDx block device implementation 2021-08-19 11:43:19 +02:00
vhdx_metadata.rs build: bump uuid from 0.8.2 to 1.0.0 2022-04-20 09:41:22 +00:00
vhdx.rs vhdx: Fixed and dynamic VHDx block device implementation 2021-08-19 11:43:19 +02:00