Package: hfsplus
Version: 1.0.4-9

Hi!

When trying to mount a HFS+ image (in fact it is DiskCopy 6.3.3,  read-only,
uncompressed image), hpmount fails with the following error:
    Neither Wrapper nor native HFS+ volume header found (Unknown error
4294967295)

Linux mount (with -t hfsplus) works OK with this image.

Looking at the sources I noticed two problems related to bswab*_inc macros:
1) big endian versions of bswabU16_inc, bswabU32_inc and bswabU64_inc
  do not return value stored at given location.
2) most versions of bswab*_inc macros are composed of two statements
  and shouldn't be used without enclosing blocks in loops and conditionals.

I'm attaching a patch to fix both problems.


Best regards,

Piotr Krysiuk

Reply via email to