summaryrefslogtreecommitdiff
path: root/block/raw-win32.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:47:24 +0100
commitad39df53d5e7ca49930dfb0dd56e34a6d43df1fd (patch)
treee46ddb28b5672d1683c00f6b4bfc5b11eaf3ac81 /block/raw-win32.c
parent81081cb2782a61d80fdcd2748209754606cf0823 (diff)
downloadqemu-ad39df53d5e7ca49930dfb0dd56e34a6d43df1fd.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 'block/raw-win32.c')
0 files changed, 0 insertions, 0 deletions