summaryrefslogtreecommitdiff
path: root/vl.c
diff options
context:
space:
mode:
authorPeter Wu <peter@lekensteyn.nl>2014-12-27 11:38:14 +0100
committerPeter Wu <peter@lekensteyn.nl>2014-12-27 15:39:52 +0100
commit581ef15e3e5512727242786b2ac4a6f8654ad688 (patch)
tree89b3a32feb6e888ced41ce1c3846a69ff3f90dd0 /vl.c
parentc8f5a654dd99cdbdeba271dcf28d2f72a9a03ec5 (diff)
downloadqemu-581ef15e3e5512727242786b2ac4a6f8654ad688.tar.gz
block/dmg: fix sector data offset calculation
This patch addresses two issues: - The data fork offset was not taken into account, resulting in failure to read an InstallESD.dmg file (5164763151 bytes) which had a non-zero DataForkOffset field. - The offset of the previous block ("partition") was unconditionally added to the current block because older files would start the input offset of a new block at zero. Newer files (including vlc-2.1.5.dmg, tuxpaint-0.9.15-macosx.dmg and OS X Yosemite [MAS].dmg) failed in reads because these files have a continuous input offset. Signed-off-by: Peter Wu <peter@lekensteyn.nl>
Diffstat (limited to 'vl.c')
0 files changed, 0 insertions, 0 deletions