libdmg-hfsplus icon indicating copy to clipboard operation
libdmg-hfsplus copied to clipboard

large file problems: uint32_t typo

Open throwaway-zz opened this issue 14 years ago • 1 comments

There's an embarrassing typo in includes/dmg/dmg.h that prevents libdmg from reading large dmgs: the return value of readUInt64 should be uint64_t, not uint32_t.

A more cosmetic issue is that there's a line in hfs/hfslib.c that prints the total filesystem size, and it has some 32-bit values that need to be cast to 64-bit before multiplying.

After fixing those issues, libdmg seems to work fine at listing and extracting files from a 7 GB dmg.

throwaway-zz avatar Nov 01 '10 21:11 throwaway-zz

There's something going on here regarding this issue. Not sure I fully understand though: http://www.nathancoulson.com/proj_cross_tools.php
http://www.nathancoulson.com/proj/cross/libdmg-hfsplus-fixes-1.patch

nopara73 avatar Dec 14 '18 05:12 nopara73