mirror of
https://gitlab.com/libvirt/libvirt.git
synced 2025-03-02 15:22:19 +00:00
Fix size probing for VDI images
Commit 027bf2ea used the wrong offset: the text field at the start of the header has 64 bytes, not 68. [1] Bug: https://bugzilla.redhat.com/show_bug.cgi?id=921452 [1] https://forums.virtualbox.org/viewtopic.php?p=29267#p29267 (cherry picked from commit 6e46477c23bfed730689fb902ff33c8ca7413ef0)
This commit is contained in:
parent
2102e03dc7
commit
cb9170c737
@ -199,7 +199,7 @@ static struct FileTypeInfo const fileTypeInfo[] = {
|
||||
[VIR_STORAGE_FILE_VDI] = {
|
||||
64, "\x7f\x10\xda\xbe", ".vdi",
|
||||
LV_LITTLE_ENDIAN, 68, 0x00010001,
|
||||
68 + 5 * 4 + 256 + 7 * 4, 8, 1, -1, NULL},
|
||||
64 + 5 * 4 + 256 + 7 * 4, 8, 1, -1, NULL},
|
||||
|
||||
/* Not direct file formats, but used for various drivers */
|
||||
[VIR_STORAGE_FILE_FAT] = { 0, NULL, NULL, LV_LITTLE_ENDIAN,
|
||||
|
Loading…
x
Reference in New Issue
Block a user