Public bug reported:

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.

** Affects: macutils (Ubuntu)
     Importance: Undecided
         Status: New

** Attachment added: "CompactPro archive exhibiting the issue"
   
https://bugs.launchpad.net/bugs/2136046/+attachment/5933813/+files/Terminal_2.2.cpt.bin

-- 
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2136046

Title:
  macutils compiled on x86-64 uses 64 bit integers for 32-bit CRC
  calculations

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/macutils/+bug/2136046/+subscriptions


-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to