macutils compiled on x86-64 uses 64 bit integers for 32-bit CRC calculations
Bug #2136046 reported by
Joseph Oswald
This bug affects 1 person
| Affects | Status | Importance | Assigned to | Milestone | |
|---|---|---|---|---|---|
| macutils (Debian) |
New
|
Unknown
|
|||
| macutils (Ubuntu) |
New
|
Undecided
|
Unassigned | ||
Bug Description
Using macunpack from macutils to unpack a CompactPro archive results in an error message
Header CRC mismatch: got 0x79c895e4, need 0xebae4ed4
However, the CPT file unpacks successfully using CompactPro 1.52 on an emulated Macintosh.
It appears the problem is that macunpack uses (unsigned long) 64-bit integers for the computation of the "Zip CRC", but the CRC computation of CompactPro only uses 32 bits.
Patching several unsigned long -> uint32_t values allows macunpack to decode the archive.
| Changed in macutils (Debian): | |
| status: | Unknown → New |
To post a comment you must log in.

Hopefully, this is a properly formatted patch for a minimal change to crc/makecrc.c
I attempted to use git-buildpackage and git format-patch.