mirror of
https://github.com/cloud-hypervisor/cloud-hypervisor.git
synced 2026-08-05 02:19:16 +00:00
A qcow2 header with backing_file_offset == 0 indicates the image has no backing file, so any non-zero backing_file_size is malformed. Qemu silently ignores the size in this case, which hides image corruption. Reject it explicitly with a dedicated error so the user gets a clear diagnostic. Signed-off-by: Anatol Belski <anbelski@linux.microsoft.com>