Package: macutils
Version: 2.0b3-17.1
Severity: normal
X-Debbugs-Cc: [email protected]
Dear Maintainer,
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.
(This was reported 'downstream' as
https://bugs.launchpad.net/ubuntu/+source/macutils/+bug/2136046)
I would be willing to develop a patch, however I am not particularly familiar
with the development and build process you prefer, and extensively updating
the 16/32-bit dependencies in the code potentially touches many files.
-- System Information:
Debian Release: trixie/sid
APT prefers noble-updates
APT policy: (500, 'noble-updates'), (500, 'noble-security'), (500, 'noble'),
(100, 'noble-backports')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 6.8.0-87-generic (SMP w/4 CPU threads; PREEMPT)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), LANGUAGE not set
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
Versions of packages macutils depends on:
ii libc6 2.39-0ubuntu8.6
macutils recommends no packages.
Versions of packages macutils suggests:
ii hfsutils 3.2.6-16
-- no debconf information