cloud-hypervisor/vhdx
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
..
src vhdx: Avoid unwrap() of invalid header 2022-07-08 10:19:11 +01:00
Cargo.toml build: bump uuid from 1.1.1 to 1.1.2 2022-06-11 00:25:45 +00:00